Simple Regular Expression Checker