is regex patterns used with java regex, fully compatible with re2j?

196 views
Skip to first unread message

prabhu17395

unread,
Jul 31, 2019, 5:37:16 AM7/31/19
to re2j-discuss
Can I switch to re2j without changing the regex pattern string?

James Ring

unread,
Jul 31, 2019, 10:21:25 AM7/31/19
to prabhu17395, re2j-discuss
Quoting from https://github.com/google/re2j, "[re2j] doesn't have
parity with the full set of Java's character classes and special
regular expression constructs". re2j is not fully compatible with
java.util.regex.

The main purpose of re2j is to provide linear time regular expression
matching in the presence of untrusted patterns. If you're in control
of the patterns, it's possible that java.util.regex is a better
option.

On Wed, Jul 31, 2019 at 2:37 AM prabhu17395 <prabh...@gmail.com> wrote:
>
> Can I switch to re2j without changing the regex pattern string?
>
> --
> You received this message because you are subscribed to the Google Groups "re2j-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to re2j-discuss...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/re2j-discuss/cc66dd0b-c7e0-40cd-89bf-e4ebbfb86619%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages