minor regexp cleanups

There is no need to escape non-metacharacters, and the /o flag is
useless when there is no variable in the pattern.