Some characters, such as question marks and plus signs, have special meanings in regular expressions and must be preceded by a backslash if they are meant to represent the character itself. May I know which is the complete list of characters which must be preceded by a backslash ?
Is it correct to say that all non alphanumeric characters must be escaped ? And how to add a backslash to a php string , addslash() only add a slash in this few cases
- single quote (')
- double quote (")
- backslash ()
- NUL (the NUL byte)