Skip to content

Instantly share code, notes, and snippets.

@noprompt
Last active May 2, 2016 15:30
Show Gist options
  • Save noprompt/6106573 to your computer and use it in GitHub Desktop.
Save noprompt/6106573 to your computer and use it in GitHub Desktop.
Regular expression for matching any word in `/usr/share/dict/words`.
This file has been truncated, but you can view the full file.
@noprompt
Copy link
Author

Generated with frak.

@noprompt
Copy link
Author

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

@bulters
Copy link

bulters commented Aug 12, 2013

This regex needs I18n....

@noprompt
Copy link
Author

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