adding end of line to regexp to avoid missparsing