i am looking for a regex that can contain special chracters like / \ . ' "
in short i would like a regex that can match the following:
- may contain lowercase
- may contain uppercase
- may contain a 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.
The regular expression you are looking for is
Remember if you are using PHP you need to use \ to escape the backslashes and the quotation mark you use to encapsulate the string.
In PHP using preg_match it should look like this:
This is a good place to find the regular expressions you might want to use.
http://regexpal.com/