December 6th, 2000, 02:42 PM
I'm really weak with regular expressions, and need to write one that handles a variable number of digits.
Here's part of a message that I receive:
name="Key" value="1069632612"> ');
The value may have more or less digits. When I originally wrote an expression, I did it cheap and dirty with this:
but of course it broke a short while later when I received a shorter key value.
Can someone help me out with this?
December 7th, 2000, 04:26 AM
Try using something like this
or specifying the lower and upper limits of the number of digits
Oh and RTFM.