Re: [PHP-DB] If (test against a regex)

2005-09-28 Thread Micah Stevens

www.php.net/preg_match

-Micah 


On Wednesday 28 September 2005 3:10 pm, Paul Ohashi wrote:
> Is there a way to test a variable against a regex similar to the way
> Perl uses the binding operator =~ ?
>
> e.g.
>   if ($envLine =~ /^* information:/)
>
>   Will match:
>   Environment information:
>   Plugin information:
>   Etc information:
>
>
> Thanks in advance,
> Paul

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



[PHP-DB] If (test against a regex)

2005-09-28 Thread Paul Ohashi
Is there a way to test a variable against a regex similar to the way
Perl uses the binding operator =~ ?

e.g. 
if ($envLine =~ /^* information:/)

Will match:
Environment information:
Plugin information:
Etc information:


Thanks in advance,
Paul

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