Archive for December, 2008

Holiday Regular Expressionism

Friday, December 19th, 2008

Saw this today on reddit.com:

Happy (Holidays|(Christ|X|Winter-een-)mas|(Ch|H)ann?ukk?ah|Kwa(nza|anz)a|New Year’s (Eve|Day)|(Boxing|Zamenhof) Day|Yule(tide)?|Winter(val|s Day|fair)|Festiv(us|al of the Bells)), reddit!

http://www.reddit.com/r/reddit.com/comments/7kma9/happy/

In the comments at the link above someone has expanded that thusly:

Happy (Holidays|(Christ|X|Winter-een-)mas|(Ch|H)ann?ukk?ah|Kwa(nza|anz)a|New Year’s (Eve|Day)|(Boxing|Zamenhof) Day|Yule(tide)?|Winter(val|s Day|fair)|Festiv(us|al of the Bells)), reddit!

[187 characters]

Happy Xmas, reddit! Happy Kwanzaa, reddit! Happy Kwaanza, reddit! Happy New Year’s Eve, reddit! Happy New Year’s Day, reddit! Happy Zamenhof Day, reddit! Happy Boxing Day, reddit! Happy Yuletide, reddit! Happy Yule, reddit! Happy Festival of the Bells, reddit! Happy Festivus, reddit! Happy Winter-een-mas, reddit! Happy Winters Day, reddit! Happy Winterval, reddit! Happy Winterfair, reddit! Happy Christmas, reddit! Happy Chanukah, reddit! Happy Chanukkah, reddit! Happy Channukah, reddit! Happy Channukkah, reddit! Happy Holidays, reddit! Happy Hanukah, reddit! Happy Hanukkah, reddit! Happy Hannukah, reddit! Happy Hannukkah, reddit!

[613 characters, not counting spaces]

328% compression

a poem for my mother

Monday, December 15th, 2008

Many of the Cantoos can be represented effectively as regular expressions. One recent one can be seen here in Cantoo form, and below as a regex:


mermorforher

/(?:mom|my)/