Package com.codebarrel.api
Class SafePattern
java.lang.Object
com.codebarrel.api.SafePattern
Utility wrapper providing some regex safety methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompile
(String regex, int flags, Consumer<PatternSyntaxException> errorHandler) compile
(String regex, Consumer<PatternSyntaxException> errorHandler)
-
Constructor Details
-
SafePattern
public SafePattern()
-
-
Method Details
-
compile
-
compile
-
compile
public static Optional<Pattern> compile(String regex, Consumer<PatternSyntaxException> errorHandler) -
compile
public static Optional<Pattern> compile(String regex, int flags, Consumer<PatternSyntaxException> errorHandler)
-