public final class RegexUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Pattern |
compileDotAll(String regex)
Compiles a case insensitive "dotall" pattern
(dots match all, including new lines).
|
static Pattern |
compileDotAll(String regex,
boolean caseSensitive)
Compiles a case insensitive "dotall" pattern
(dots match all, including new lines).
|
static Properties |
extractFields(CharSequence text,
RegexFieldExtractor... patterns) |
static void |
extractFields(Properties dest,
CharSequence text,
RegexFieldExtractor... extractors) |
public static Pattern compileDotAll(String regex)
regex
- regular expressionpublic static Pattern compileDotAll(String regex, boolean caseSensitive)
regex
- regular expressioncaseSensitive
- true
to match character case.public static void extractFields(Properties dest, CharSequence text, RegexFieldExtractor... extractors)
public static Properties extractFields(CharSequence text, RegexFieldExtractor... patterns)
Copyright © 2009–2021 Norconex Inc.. All rights reserved.