Rob Prime wrote:You can get rid of the entire "from" variable. Matcher.find() by defaults searches from the last found position.
Good point! I am just learning this now. I have discovered that m.end() will sometimes increment farther than I would expect. E.g.:
will actually count the look-ahead expression, even though it is supposed to be non-capturing. Just have to know that...