This is needed for when we have nested modules.
This adds a simple regexp match function. This will be useful for regexp based name classification, if you're into that sort of thing.