Link to home
Start Free TrialLog 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
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial