regular expression for integer range

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,
 
 
I want to write regular expression for checking the string format entered by user.
 
the allowed formats are
 
examples:
10
10,
10,12-10
12-10
 
that is the valid strings are:
1. only integer
2. an integer, range of integers example 3
 
and no other characters must be allowed.
 
thanks
babu.
 

		
---------------------------------
How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos. Get Yahoo! Photos

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux