Groovy: a sample script
In the IntelliJ forums, I came across an off-topic (but funny) post by Robert Gibson who was wondering :
Somebody told me once that there are only two words in the English language which contain each vowel, once only, in alphabetical order. Anybody know what the other one is?
Indeed, there are more than two words corresponding to those constraints. I then wrote a little Java class which took all the words of a words file (with 100k words) and tested if they matched a regexp corresponding to those constraints.
Read more...