ECMAScript compatible RegExp library for Java
<dependency>
<groupId>org.leadpony.regexp4j</groupId>
<artifactId>regexp4j</artifactId>
<version>0.1.0</version>
</dependency>
- Matching is performed by code point, not by code unit as in ECMAScript. For example, metacharacter
.
may match a character in supplementary planes encoded as a surrogate pair. - Regular expression
.
does not match a next-line characterU+0085
, which is categorized as a line terminator in Java. - Forward references are not supported.
- Group values never be overwritten by
null
in looping by quantifiers. - The lower and upper bounds in bounded quantifier
{m}
,{m,}
, and{m, n}
cannot be greater thanInteger.MAX_VALUE
. - Unicode flag
u
is not implemented yet.
Copyright © 2020 the RegExp4J authors. This software is licensed under Apache License, Versions 2.0.