Posted by Eric Layman on 03/22/07 17:39
hi,
i intend to validate a string of numbers:
The conditions are: it can start with a + sign or without. but all must be
in numbers. a space is allowed
Consider the following numbers
+12345922
12345922
The above 2 numbers are valid. I've tried the following regexp:
[\+0-9]$
It doenst work as intended.
helloworld1234567
goes through!
whereas
1234567helloworld doesn't!
please advise
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
[Back to original message]
|