Parse regular expression pattern pattern with mode flags flags.
(String pattern, int flags)
| 786 | * Parse regular expression pattern {@code pattern} with mode flags {@code flags}. |
| 787 | */ |
| 788 | static Regexp parse(String pattern, int flags) throws PatternSyntaxException { |
| 789 | return new Parser(pattern, flags).parseInternal(); |
| 790 | } |
| 791 | |
| 792 | private Regexp parseInternal() throws PatternSyntaxException { |
| 793 | if ((flags & RE2.LITERAL) != 0) { |