Class PatternUtils
java.lang.Object
com.blackrook.rookscript.struct.PatternUtils
-
Method Summary
-
Method Details
-
get
Gets an existing, compiled pattern or a newly-compiled one for the provided expression. Also useful for pre-warming oft-used expressions.- Parameters:
regex- the input RegEx.- Returns:
- a newly-compiled
Patternor an existing one. - Throws:
PatternSyntaxException- if the expression cannot be compiled.
-