Don't use unnecessary (and unescaped) regex

closes #1731