find anagrams by nn

i=0;print System.in.filterLine{it-~/[^DMOPW]{6}/?0:i++}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top