Weird match
Posted: Mon May 12, 2008 10:41 am
Hi,
I'm trying to spamfilter privmsg's that contain DCC SEND/RESUME/CHAT, but where the DCC is not preceded by this special \x01 character.
I hade the following regex: [^\x01]+DCC (SEND|CHAT|RESUME)
And this seemed to match: DCC SEND versions.txt 1359719488 1024 17115
Now, I wonder why. Since clearly, this DCC SEND is NOT preceded by one or more characters that do NOT equal \x01?
Any thoughts/suggestions would be appreciated.
I'm trying to spamfilter privmsg's that contain DCC SEND/RESUME/CHAT, but where the DCC is not preceded by this special \x01 character.
I hade the following regex: [^\x01]+DCC (SEND|CHAT|RESUME)
And this seemed to match: DCC SEND versions.txt 1359719488 1024 17115
Now, I wonder why. Since clearly, this DCC SEND is NOT preceded by one or more characters that do NOT equal \x01?
Any thoughts/suggestions would be appreciated.