Solution to: ‘Warning: preg_match() [function.preg-match]: Unknown modifier ‘/’ in …. on line …’
Regular expressions by themselves are difficult for many to implement. An error that many of the regex newbies will encounter is:
Warning: preg_match() [function.preg-match]: Unknown modifier ‘/’ in ….. on line …
Solution
This error occurs whenever the pattern you are looking for contains a literal forward-slash. You should escape every literal forward-slash with a backslash.
For those of [...]