Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Regular expression for matching any word in `/usr/share/dict/words`.
This file has been truncated, but you can view the full file.
@noprompt

This comment has been minimized.

Copy link
Owner Author

noprompt commented Jul 29, 2013

Generated with frak.

@noprompt

This comment has been minimized.

Copy link
Owner Author

noprompt commented Jul 29, 2013

$ du -h word-re
1.5M    word-re
@bulters

This comment has been minimized.

Copy link

bulters commented Aug 12, 2013

This regex needs I18n....

@noprompt

This comment has been minimized.

Copy link
Owner Author

noprompt commented Aug 13, 2013

For anyone attempting to try out this pattern be aware that it is very large and may not work depending on your programming language. The pattern should be compatible with most languages that have builtin support regular expressions (but I make no guarantees).

For anyone suggesting this is a hoax; it is not. Clone the repo, install leiningen, run lein repl from the root of the repo, follow the instructions here, and witness true for yourself. If able, learn Clojure and regular expressions; you'll become a better programmer for it.

For anyone not wise enough to know better: do not use this for anything serious. This was more of a "what if I..." experiment for fun. That being said, I hope you find this as funny and interesting as I do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.