opening = "This is a test. This is a test. \nThis is a test. This is a test. ,\n" opening.grep(/this is,\z/)