Posted by Steve on 10/18/07 13:15
<davranfor@gmail.com> wrote in message
news:1192698332.976860.15250@v23g2000prn.googlegroups.com...
> >you had two responses...one of
>>which (not mine, btw), is much more simply expressed than rik's
>
> Steve , not much more simply expressed
>
> "1-9" and "\d" are identical ;)
uhmmmm...
/^\d{1,3}(?:-\d{1,3})*$/
is much more simply understood than
/^([1-9][0-9]?)?[0-9](-([1-9][0-9]?)?[0-9])*$/
smart ass.
[Back to original message]
|