Add customisable regexp for stripping module names.