fixes #3249 - change regex syntax from start/end of line to start/end of string