Store match text before breaking across long lines

Previously RegExp.lastMatch was being changed when findWordBreak was
called making the matchText incorrect for long lines.