do not wrap regular expresssions in '^' and '$', only strings.

A regular expression is meant to be taken as is. The author can wrap it in '^' and '$' if they choose.