Added a rule that calls scanner_badchar on the last regex