Link to home
Create AccountLog in
Avatar of edyonline
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
ASKER CERTIFIED SOLUTION
Avatar of Roonaan
Roonaan
Flag of Netherlands image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer