Using regex. trying to get only the last x digits of the number and 0 where necessary,
Consider the next entry
1234 123 12 1
EDIT: they will be displayed individually as string values
I'm trying to make a regex expression (or multiple regex expressions, ideally just one)
34 23 12 01
I'm a little new to regex and callback and still staggering a bit. any ideas on where to look or what can be done?
thanks
EDIT To clarify: For use in .net System.Text.Regex.Replace (), any of these values may be included as an input parameter.
EDIT: Thanks to everyone for the ideas. This seems to be impossible to do in regular expression. Sad as it is.
source share