|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.uadetector.internal.util.RegularExpressionConverter
public final class RegularExpressionConverter
Nested Class Summary | |
---|---|
static class |
RegularExpressionConverter.Flag
|
Method Summary | |
---|---|
static java.lang.String |
convertPatternToPerlRegex(java.util.regex.Pattern pattern)
Converts a given Pattern into a PERL style regular expression. |
static java.util.regex.Pattern |
convertPerlRegexToPattern(java.lang.String regex)
Converts a PERL style regular expression into Java style. |
static java.util.regex.Pattern |
convertPerlRegexToPattern(java.lang.String regex,
boolean faultTolerant)
Converts a PERL style regular expression into Java style. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String convertPatternToPerlRegex(@Nonnull java.util.regex.Pattern pattern)
Pattern
into a PERL style regular expression.
pattern
- regular expression pattern
public static java.util.regex.Pattern convertPerlRegexToPattern(@Nonnull java.lang.String regex)
java.util.Pattern
. If there are modifiers that are not valid an exception will be thrown.
regex
- A PERL style regular expression
public static java.util.regex.Pattern convertPerlRegexToPattern(@Nonnull java.lang.String regex, @Nonnull boolean faultTolerant)
regex
- A PERL style regular expressionfaultTolerant
- Fault-tolerant translating the flags
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |