Switch to a regex match to ignore \n's.