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

Reply via email to