I am looking for a php regex that can contain only , and – chracters.
in short i would like a regex that can match the following:
* may contain number
* may contain space
* may contain , -
i am making a php script to check if a certain string have the above or not, like a validation check.
i have tried with this
^([\[\]=,{\}\0-9_-]+)$
but not working. please someone help me.
1 Answer