After lots of testing, regexes