Re: How to escape string for preg_match?



tim:

Either with \
preg_match( '/www\//', $str )

or preg_quote()
http://www.php.net/manual/en/function.preg-quote.php

or use a diffrent charcter as a delimiter
preg_match( '|www/|', $str )

--
Jock

.