reorder methods in RegularExpressionMatcher