Fix regexps so they are anchored to start/end of string instead of start/end of line