preg_match('@\.php@',$url,$match)
Common:-
- slash
- quotation
- double quotation
any others?
Should @
, ?
, =
be escaped?
preg_match('@\.php@',$url,$match)
Common:-
any others?
Should @
, ?
, =
be escaped?
There is a list of special Regex characters in the PHP documentation here: http://php.net/manual/en/function.preg-quote.php
The special regular expression characters are:
. \ + * ? [ ^ ] $ ( ) { } = ! < > | : -