add /s to the end of the regex for the error message