test regex module
Removed old and ugly if