public static RePattern compile(String pattern, EnumSet<PatternFlags> flags) throws RegexException {
        return Compiler.compile(pattern, flags);
    }
public static RePattern compile(String pattern, EnumSet<PatternFlags> flags) throws RegexException {
        return Compiler.compile(pattern, flags);
    }
public static RePattern compile ( String pattern , EnumSet < PatternFlags > flags ) throws RegexException { return Compiler . compile ( pattern , flags ) ; }
Compile a pattern.
@param pattern the pattern.
@param flags flags that determine the interpretation of the pattern.
@return the compiled pattern.
@throws RegexException
Compile a pattern .