Re: How to escape string for preg_match?
- From: "John Dunlop" <usenet+2004@xxxxxxxxxxxxxxxx>
- Date: 10 May 2006 14:29:25 -0700
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
.
- References:
- How to escape string for preg_match?
- From: squash
- Re: How to escape string for preg_match?
- From: tim
- How to escape string for preg_match?
- Prev by Date: Re: How to escape string for preg_match?
- Next by Date: Re: How to escape string for preg_match?
- Previous by thread: Re: How to escape string for preg_match?
- Next by thread: Re: How to escape string for preg_match?
- Index(es):