http://www.perlmonks.org?node_id=160081


in reply to Regex Fridge Code

Hehe, strange isn't it? Perhaps I have some explaining to do...
=)

The original plan was to show an animated GIF of a regex matching as an instructional aid, but I decided to do something more abstract (and less practical) because... ... umm... Yeah.

You'll notice there are hidden messages such as:
- regex Pr\n. (noun) - regex pr0n? How lewd!
- pm, pl (as in Perl)
- ... (fill in the rest, hint: what OS do you (have to) love?)
So just incase you thought you were being brainwashed, you are. Thank the political adverts for this idea. :) heh-heh-heh, "Excellennnttt... it's only a matter of time now." <evil laughter>

This regex should parse/match most variants of the word 'regex' including:
- regex - \n.\ (root word), defined here.
- regexes, regexen - \n. pl.\ "I have two very readable regexen."; "Perlmonks saint: I thought regexes where suppose to be hard!"
- regexens - \n. pl.\ slang, regexen variant.
- regex - \v. present tense\
- regexes - \v. present participle third person\ - "He who regexes..."
- regexer - \n.\ One who regexes.
- regexers - \n. pl.\ - "Perl users become avid regexers as they find how it really improves the readability of their code."
- regexed - \v. past tense\ - "I have regexed for the good of the country."
Special cases:
- regexing ($3) - \v. pp.\ - "Regexing for the benefit of newbies."
- regexp ($1) - \n.\ Evil black sheep form, that _LOTS of people STILL use_ damnit. (Peer pressure persuades us from using this form.)