implement pretty regexes