Add patters method to Regexp based parser for debug