Changes to Parser and RegExpFunc, added an System in for the regular
expression, and also added error output statements for failed regex in
RegExpFunc