edyonline
asked on
regular expression question in php preg_match
i'd like to check the following
okay:
'-'
'-1'
'-1212'
'-12.22'
not okay:
'- '
'#'
'-1/1'
'-1,2'
'-1.2.2.2'
'1,2'
'1/1'
'1.2.2'
Thanks
okay:
'-'
'-1'
'-1212'
'-12.22'
not okay:
'- '
'#'
'-1/1'
'-1,2'
'-1.2.2.2'
'1,2'
'1/1'
'1.2.2'
Thanks
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.