R
Ron Rosenfeld
Thanks, Ron, I do not understand the code... but it works.
Gilbert
I'm glad it works. Thanks for the feedback.
The part of the code that you won't find in the HELP section has to do with the
regular expression engine. There is information here:
http://support.microsoft.com/default.aspx?scid=kb;en-us;818802&Product=vbb
http://msdn2.microsoft.com/en-us/library/6wzad2b2.aspx
http://www.regular-expressions.info/reference.html
The re.Pattern that I am using, "\d(\+\d+$)"
matches
any digit
followed by a '+'
followed by any number of digits
followed by the end of line.
So it is looking for a pattern which matches anything like:
6+2
or
6+234
etc.
If that pattern matches, then it returns everything except the leading digit.
--ron