use end of string or CRLF in regexps