Changed how regex searches are performed

Regex searches are now handles as modules in their own directory. This
may or may not break everything.