|
Posted by Toby A Inkster on 01/19/08 10:50
Michael Fesser wrote:
> .oO(wes.waters@gmail.com)
>
>>I haven't seen any documentation on this, and searching for !~ has been
>>fruitless. Any suggestions, or is there no equivalent?
>
> What about !preg_match()?
> Just a guess, since I don't use Perl.
Yep, that's correct.
Perl:
if ($foo !~ /bar/)
{
print "match\n";
}
PHP:
if (!preg_match('/bar/', $foo))
{
print "match\n";
}
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 19 days, 22:02.]
Ham vs Bacon vs Pork
http://tobyinkster.co.uk/blog/2008/01/17/pork-etc/
[Back to original message]
|