Re2j Versions Save

linear time regular expression matching in Java

re2j-1.7

1 year ago

RE2/J 1.7 brings some performance improvements and bug fixes:

  • avoid locking methods for obtaining instances of RE2 (see #46 and #121). Thank you @charlesmunger!
  • fixed repeat of preferred empty match (see #136 and #137)
  • fixed quoting of codepoints requiring surrogate pairs (see #123 and #143)
  • fixed NullPointerException in Parser#factor (see #149)
  • omitted leading empty matches in Pattern#split (to conform to JDK8+ regexp behavior) and improved performance (see #131, #138)

re2j-1.6

3 years ago

A couple of new features in this release:

  • added Pattern.namedGroups(): returns a map of the capturing groups in the pattern, where key is the name and value is the index of the group in the pattern

  • added a series of methods in Matcher to match against UTF-8 bytes

Thank you for the contributions, @j4ckcyw!

re2j-1.5

3 years ago

This release adds license headers to each source file, plus some build tool changes to ensure that these headers aren't forgotten in the future.

There are no changes to RE2/J's behavior in this release.

re2j-1.4

3 years ago

This is the 1.4 release of RE2/J. Changes from 1.3 include:

Thank you @EricEdens for porting the benchmarks to JMH.

Thank you to those listed above and to all the other contributors and bug reporters.

re2j-1.3

4 years ago

This is the 1.3 release of RE2/J. Changes from 1.2 include:

  • Named group support (d0ec5a7cfec67a08735b720a956c92d1440b3789)
  • Matcher.quoteReplacement is supported (c885755f0439e4e3a25b225029a1bd5a0323cf40)
  • Add Pattern.equals() and hashCode() (9812767c875203f8752831a63a8a0e8a7494c90c), fixing #55
  • Various memory and performance improvements courtesy of @arnaudroger
  • Use Character.toLowerCase() and toUpperCase instead of UnicodeTables.CASE_RANGES (06d4a720e12673e78be99e5f16bd6c800a7c01ab), issue #78, courtesy of @ringw
  • Detect invalid unicode class specification (f6c10c72ee9cc8ecbdc69c671e1a673dc686bb49), fixes #74
  • Attempt to reduce monitor contention on Machine (fc83bf793e8dfb6af091ffb1a1632ad59e09bd44), issue #85
  • Improve support for GWT projects by including RE2J.gwt.xml and supersourced files to the source jar ( 097e2a1048d7fad915dddd06f0f9e84cc145b429), courtesy of @tjgq

Thank you to those listed above and to all the other contributors and bug reporters.

re2j-1.2

6 years ago

Changes since 1.1:

  • use readResolve method to fill in transient re2 field (fixes NPE when using deserialized Pattern objects)

  • various javadoc fixes

  • add Matcher.quoteReplacement

  • add StringBuilder overloads of Matcher methods

  • always set input sequence length on Matcher.reset()

re2j-1.1

8 years ago

This is a bugfix release of RE2/J. It addresses:

re2j-1.0

9 years ago

The first binary release of RE2/J.