It looks like the old regex handled whitespace at the end of a line, but the new one doesn't?