I hate regexes.