common/src/main/java/com/streamsets/pipeline/lib/parser/shaded/com/google/code/regexp/Pattern.java
private java.util.regex.Pattern buildStandardPattern(String namedPattern, Integer flags) {
        // replace the named-group construct with left-paren but
        // make sure we're actually looking at the construct (ignore escapes)
        StringBuilder s = new StringBuilder(namedPattern);
        s = replace(s, NAMED_GROUP_PATTERN, "(");
        s = replaceGroupNameWithIndex(s, BACKREF_NAMED_GROUP_PATTERN, "\\");
        return java.util.regex.Pattern.compile(s.toString(), flags);
    }
private java.util.regex.Pattern buildStandardPattern(String namedPattern, Integer flags) {
        // replace the named-group construct with left-paren but
        // make sure we're actually looking at the construct (ignore escapes)
        StringBuilder s = new StringBuilder(namedPattern);
        s = replace(s, NAMED_GROUP_PATTERN, "(");
        s = replaceGroupNameWithIndex(s, BACKREF_NAMED_GROUP_PATTERN, "\\");
        return java.util.regex.Pattern.compile(s.toString(), flags);
    }
private java . util . regex . Pattern buildStandardPattern ( String namedPattern , Integer flags ) { // replace the named-group construct with left-paren but // make sure we're actually looking at the construct (ignore escapes) StringBuilder s = new StringBuilder ( namedPattern ) ; s = replace ( s , NAMED_GROUP_PATTERN , "(" ) ; s = replaceGroupNameWithIndex ( s , BACKREF_NAMED_GROUP_PATTERN , "\\" ) ; return java . util . regex . Pattern . compile ( s . toString ( ) , flags ) ; }
Builds a {@code java.util.regex.Pattern} from a given regular expression
pattern (which may contain named groups) and flags

@param namedPattern the expression to be compiled
@param flags Match flags, a bit mask that may include:
<ul>
<li>{@link java.util.regex.Pattern#CASE_INSENSITIVE}</li>
<li>{@link java.util.regex.Pattern#MULTILINE}</li>
<li>{@link java.util.regex.Pattern#DOTALL}</li>
<li>{@link java.util.regex.Pattern#UNICODE_CASE}</li>
<li>{@link java.util.regex.Pattern#CANON_EQ}</li>
<li>{@link java.util.regex.Pattern#UNIX_LINES}</li>
<li>{@link java.util.regex.Pattern#LITERAL}</li>
<li>{@link java.util.regex.Pattern#COMMENTS}</li>
</ul>
@return the standard {@code java.util.regex.Pattern}
Builds a { @code java . util . regex . Pattern } from a given regular expression pattern ( which may contain named groups ) and flags