Registry / utility / re2j
library1.8javamavenunverified

Linear time regular expression matching for Java, based on Google's RE2.

<dependency> <groupId>com.google.re2j</groupId> <artifactId>re2j</artifactId> <version>1.8</version> </dependency>
INSTALL
IMPORT
SIG · RE2J
R
re2j
utilityjavav1.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Pattern
com.google.re2j.Pattern

Compile and match a regular expression.

import com.google.re2j.Pattern; Pattern pattern = Pattern.compile("a+b"); boolean matches = pattern.matches("aaab"); System.out.println(matches); // true
Debug
Known issues
breakingRE2/J does not support backreferences or lookahead/lookbehind; use java.util.regex for those features.
fix
Switch to java.util.regex.Pattern if you need advanced regex features.
affects: all
Upgrade
Version history
1.8latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
re2j — mvn dependency:get re2j · libregistry