I have string that am checking to see if it contains valid characters.
This is the code
preg_match('/^[a-zA-Z0-9/-.,; ]+$/', $string)
When I remove "/" it works
preg_match('/^[a-zA-Z0-9/-.,; ]+$/', $string)
What can be the issue here?
I have string that am checking to see if it contains valid characters.
This is the code
preg_match('/^[a-zA-Z0-9/-.,; ]+$/', $string)
When I remove "/" it works
preg_match('/^[a-zA-Z0-9/-.,; ]+$/', $string)
What can be the issue here?