ignore \n during matching