implemented regexes