Okay, so say I wanted to block ever possible permutation of the (goddamn spam filters) an0ntalk spam
i.e.
space seperated
. replaced with DOT or D O T
Using symbols such as @ and 0
How could I get
"[Ww][ \t\r\n\v\f]?[Ww][ \t\r\n\v\f]?[Ww][ \t\r\n\v\f]?(\.|[Dd][ \t\r\n\v\f]?[0Oo][ \t\r\n\v\f]?[Tt])[ \t\r\n\v\f]?[Aa\@][ \t\r\n\v\f]?[Nn][ \t\r\n\v\f]?[0Oo][ \t\r\n\v\f]?[Nn][ \t\r\n\v\f]?[Tt][ \t\r\n\v\f]?[\@Aa][ \t\r\n\v\f]?[Ll][ \t\r\n\v\f]?[Kk][ \t\r\n\v\f]?(\.|[Dd][ \t\r\n\v\f]?[0Oo][ \t\r\n\v\f]?[Tt])[ \t\r\n\v\f]?[Cc][ \t\r\n\v\f]?[0Oo][ \t\r\n\v\f]?[Mm]"
to work?
Oh, to clarify
"." replaced with DOT or D O T
You do know the minute you filter one thing, they'll just add something new to bypass it. It sucks, I know.
You should normalize everything before checking, e.g. remove all whitespace, convert to lower case, replace 0 -> o, @ -> a, dot -> . etc.
That said, I don't see why the regex wouldn't work; if you can only use text then you're fucked because there are a zillion permutations.
Heh, I just want working regex
(don't know if my trip is right :|)
i'm not gonna read that whole regex but make a perl script that will build it for you and it'll be a whole lot easier to avoid typos, etc.
I think it's best if you just get a botnet and ddos "that shitty website".
>>7
Hahaha, that fucking faggot deserves it, but I just need a little regex help, as I can't get this to work
>>9
Eheh,
No
fixed the regex
(A|a|@).?(N|n).?(0|O|o).?(N|n).?(T|t).?(A|a|@).?(L|l).?(K|k)
... I made it overly complex :|
>>11
why not just [a@].?n.?[o0].?n.?t.?[a@].?l.?k
with case-insensitive matching?
>>12
Because I fucking fail at regex
/\ /\/ () /\/ T /\ |_ |<
Now what?
>>14
cool advertising d00d.
hahaha
You could use a dictionary for that. For ambiguous features like ()
also looking like @
or |
or i
or whatever, you can ferret out the correct value with spellchecking or markov chains of other content seen.
$4nontalk = array("(A|a|@).?(N|n).?(0|O|o).?(N|n).?(T|t).?(A|a|@).?(L|l).?(K|k)");
>>14
$4nontalk = array("(A|a|@|4|\/\\).?(N*|n*).?(0*|O*|o*).?(N*|n*).?(T|t).?(A|a|@|4|\/\\).?(L|l|\|\_).?(K|k|\|\<)");
>>14
(A|a|@|4|\/\\).?(N|n|\|\\\|).?(0|O|o|\(\)).?(N|n|\|\\\|).?(T|t).?(A|a|@|4|\/\\).?(L|l|\|\_).?(K|k|\|\<)
'Some people, when confronted with a problem, think "I know, I’ll use regular expressions." Now they have two problems.' -- Anonymous
>>21
--Jamie Zawinski
I love how that quote is invariably misinterpreted as some sort of general statement that regular expressions will destroy humanity or something. It's not.
Read this, and be enlightened:
http://regex.info/blog/2006-09-15/247
Have you read your SICP today?
>>24
Please don't bring that nonsense here.
Structure and Interpretation of Computer Programs
SICP Interpretation of Computer Programs
SICP STRUCTURE AND INTERPETATION OF BASS FART