Using regex. trying to get only the last x digits of the number and 0 padding where necessary
Consider the following input
1234
123
12
1
EDIT: These will appear individually as string values
i'm trying to make a regex expression (or several regex expressions, ideally just a single) yield
34
23
12
01
I'm a bit new to regex and backreferencing and still fumbling around a bit. any ideas on where to look or what could do this?
thanks
EDIT For clarification: To be used in .net's System.Text.Regex.Replace() function any of these values may come in as the input parameter.
EDIT: Thanks for the ideas everyone. It seems this cannot be done within regex. Sad as it is.