The Viagra Regular Expression Tester

Related blog entry. Test your mental might against the incredible Viagra Regular Expression! Type in anything with the word viagra in it, and it will tell you if it found it. Pick "Highlight" and it will highlight the word it found out of your text. * note: this may not work.

Here's the RegEx that we run against:

\b((V|v|\\/)+([\W]*[\w]{0,2}[\W]*)(I|i|1|l|\||ï|ì|:|Ì|Î|Í|Ï|y|Y)*([\W]*[\w]{0,2}[\W]*){0,2}(A|a|@|/\\|á|à|â|ã|ä|å|æ|À|Á|Â|Ã|Ä|Å)+([\W]*[\w]{0,3}[\W]*)(G|g|6|9){1,4}([\W]*[\w]{0,3}[\W]*)(R|r|®){0,4}([\W]*[\w]{0,2}[\W]*)(A|a|@|/\\|á|à|â|ã|ä|å|æ|À|Á|Â|Ã|Ä|Å)+)\b


Yes No Format Highlight