Regex Matcher - roidrole/Roids-Tweaker GitHub Wiki

Allows knowing whether a string matches a Regular Expression

It has only one useful method :

mods.ctutils.utils.RegexMatcher.find(input as string, regex as string, @Optional options as int);

This options as int parameter allows more control over how the pattern is matched. A list follows.

If you want to use more than one option, separate them by | (bitwise OR)

You can get all parameters from

mods.ctutils.utils.RegexMatcher.getCamelCaseParameter();

I don't know what most of these do (PRs welcome if you do!), but here is documentation.

Parameter Description
CANON_EQ canonical equivalence
CASE_INSENSITIVE Case-insensitive matching
COMMENTS Allows comments and whitespace in pattern
DOTALL Dotall mode
LITERAL Literal Parsing
MULTILINE Multiline mode
UNICODE_CASE Unicode-aware case folding
UNICODE_CHARACTER_CLASS Unicode version of Predefined character classes and POSIX character classes
UNIX_LINES Unix Lines mode