Re: Preg_match() regex

From: Date: Fri, 21 Apr 2006 18:11:45 +0000
Subject: Re: Preg_match() regex
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-234502@lists.php.net to get a copy of this message
As Joe implied with his link, the preg_* family is called PCRE (Perl Compatible Regular Expression), and that's because they accept a Perl-style regexp as a string, i.e. '/foo-foo/i' would do it. Jeff wrote:
Regex pattern question here. I need to match on "Foo-F00", "Foo-foo", "foo-Foo". I know in perl you can use the /i to specify "case insensitive" matching. Is there any such switch that can be used in preg_match() in PHP? -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE http://www.innox.com.mx


« previous php.general (#234502) next »