in reply to Re^2: How to get only the next word matching the regex in the linein thread How to get only the next word matching the regex in the line