Re: If (test against a regex)
| From: | Micah Stevens | Date: | Wed, 28 Sep 2005 22:29:28 +0000 |
| Subject: | Re: If (test against a regex) | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-40408@lists.php.net to get a copy of this message | ||
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