These are very cool I must say
Anyway ... there is an example in the docs of:
/spamfilter add pc block - - come to irc\..+\..+
which is great but it also blocks my own irc net's name that way. How would I have it block all others save for my own?
Code: Select all
<?php
$r = '/come to irc\.(?!blah\.).+/';
echo preg_match($r, 'come to irc.blah.net').'<br>';
echo preg_match($r, 'come to irc.net').'<br>';
echo preg_match($r, 'come to irc.le-blah.net');
?>Code: Select all
0
1
1Oops, really... Sorry :<http://laurikari.net/tre/ wrote:These are other features I'm planning to implement real soon now:
(?!pattern) Zero-width negative look-ahead assertions.