implemented regexps