Re: Preg_match() regex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux