Use a compiled regex for the parsing.