Don't do the regex unless we need to