Added the -c flag to switch between regex/prefix/postfix search.
Removed the RECHECK_HASH define, and added -r to disable it.