Skip to content

v2.0.0

Latest

Choose a tag to compare

@CodesAway CodesAway released this 05 Dec 15:55
1302660

Major version increase due to Java 9 changes that prevent RegExPlus from making Matcher cloneable.

Version 2.0.0 can be used with Java 8 and above

Added

  • MatchResult.getEntry default method

Changed

  • MatchResult no longer implements Iterable (Matcher still does though)
  • Creates lots of default methods in MatchResult to handle basic functionality (makes easier to implement MatchResult interface)

Fixed

  • Matcher.toMatchResult ClassCastException in Java 9

Removed

  • Matcher.clone (no longer cloneable, since cannot clone java.util.regex.Matcher)
  • Matcher.isMatchResult (since now it would always return false and is no longer needed)
  • Matcher.size (returned the number of matches - not frequently used)
  • MatcherResult.size (returned number of groups)