Added function testRegex
Added parser for command line options