Matching with the end of the line