Regex help (28)

1 Name: Fou-Lu!Id1gMYGA52!!UN5raO3z : 2008-10-16 20:44 ID:wWukQjdH

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?

2 Name: Fou-Lu!Id1gMYGA52!!UN5raO3z : 2008-10-16 21:12 ID:wWukQjdH

Oh, to clarify
"." replaced with DOT or D O T

3 Name: #!/usr/bin/anonymous : 2008-10-17 00:34 ID:Heaven

You do know the minute you filter one thing, they'll just add something new to bypass it. It sucks, I know.

4 Name: #!/usr/bin/anonymous : 2008-10-17 00:40 ID:w5Fjjd8y

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.

5 Name: Fou-Lu!Id1gMYGA52!!80lTLOE9 : 2008-10-17 01:48 ID:wWukQjdH

Heh, I just want working regex

(don't know if my trip is right :|)

6 Name: #!/usr/bin/anonymous : 2008-10-17 05:22 ID:Heaven

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.

7 Name: #!/usr/bin/anonymous : 2008-10-17 12:17 ID:Heaven

I think it's best if you just get a botnet and ddos "that shitty website".

8 Name: Fou-Lu!Id1gMYGA52!!80lTLOE9 : 2008-10-17 13:46 ID:wWukQjdH

>>7
Hahaha, that fucking faggot deserves it, but I just need a little regex help, as I can't get this to work

9 Name: sage : 2008-10-17 20:42 ID:Heaven

sage

10 Name: #!/usr/bin/anonymous : 2008-10-17 21:26 ID:Heaven

>>9
Eheh,

No

11 Name: Fou-Lu!Id1gMYGA52!!80lTLOE9 : 2008-10-17 21:39 ID:Heaven

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 :|

12 Name: #!/usr/bin/anonymous : 2008-10-18 00:27 ID:xT+WFqJD

>>11
why not just [a@].?n.?[o0].?n.?t.?[a@].?l.?k with case-insensitive matching?

13 Name: Fou-Lu!Id1gMYGA52!!80lTLOE9 : 2008-10-18 02:17 ID:Heaven

>>12
Because I fucking fail at regex

14 Name: #!/usr/bin/anonymous : 2008-10-19 03:07 ID:Heaven

/\ /\/ () /\/ T /\ |_ |<
Now what?

15 Name: #!/usr/bin/anonymous : 2008-10-19 08:38 ID:Heaven

>>14
cool advertising d00d.

16 Name: Fou-Lu!Id1gMYGA52!!UN5raO3z : 2008-10-20 13:53 ID:wWukQjdH

hahaha

17 Name: #!/usr/bin/anonymous : 2008-10-20 14:55 ID:MILasNSm

>>14

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.

18 Name: Fou-Lu!Id1gMYGA52!!UN5raO3z : 2008-10-20 16:51 ID:wWukQjdH

$4nontalk = array("(A|a|@).?(N|n).?(0|O|o).?(N|n).?(T|t).?(A|a|@).?(L|l).?(K|k)");

19 Name: Fou-Lu!Id1gMYGA52!!80lTLOE9 : 2008-10-20 23:48 ID:Heaven

>>14
$4nontalk = array("(A|a|@|4|\/\\).?(N*|n*).?(0*|O*|o*).?(N*|n*).?(T|t).?(A|a|@|4|\/\\).?(L|l|\|\_).?(K|k|\|\<)");

20 Name: Fou-Lu!Id1gMYGA52!!80lTLOE9 : 2008-10-20 23:59 ID:Heaven

>>14
(A|a|@|4|\/\\).?(N|n|\|\\\|).?(0|O|o|\(\)).?(N|n|\|\\\|).?(T|t).?(A|a|@|4|\/\\).?(L|l|\|\_).?(K|k|\|\<)

21 Name: #!/usr/bin/anonymous : 2008-12-31 12:56 ID:lZQRCoIa

'Some people, when confronted with a problem, think "I know, I’ll use regular expressions." Now they have two problems.' -- Anonymous

22 Name: #!/usr/bin/anonymous : 2009-01-01 00:57 ID:Heaven

>>21
--Jamie Zawinski

23 Name: #!/usr/bin/anonymous : 2009-01-01 18:32 ID:uVix0lfX

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

24 Name: The Sussman : 2009-01-10 21:25 ID:YUU0Fefq

Have you read your SICP today?

25 Name: #!/usr/bin/anonymous : 2009-01-11 01:08 ID:Heaven

>>24
Please don't bring that nonsense here.

26 Name: #!/usr/bin/anonymous : 2009-01-16 19:03 ID:1iQJzu3p

Structure and Interpretation of Computer Programs

27 Name: #!/usr/bin/anonymous : 2009-01-16 22:26 ID:59a2EbRl

SICP Interpretation of Computer Programs

28 Name: #!/usr/bin/anonymous : 2009-01-28 16:54 ID:APvkc/em

SICP STRUCTURE AND INTERPETATION OF BASS FART

This thread has been closed. You cannot post in this thread any longer.