public class SimpleRegex
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.regex.Pattern |
getPattern(java.lang.String _source)
Compiles a simple regular expression into a suitable
java.util.regex.Pattern |
static java.util.regex.Pattern |
getPattern(java.lang.String _source,
int _flags) |
static java.lang.String |
translateSourceToSQL(java.lang.String _source)
Translates a given "simple regex" into an SQL-"LIKE" compatible regex.
|
public static java.util.regex.Pattern getPattern(java.lang.String _source) throws java.util.regex.PatternSyntaxException
java.util.regex.Pattern.
_source
- the simple regexjava.util.regex.Pattern that matches the simple regex
java.util.regex.PatternSyntaxException
public static java.util.regex.Pattern getPattern(java.lang.String _source, int _flags) throws java.util.regex.PatternSyntaxException
java.util.regex.PatternSyntaxException
public static java.lang.String translateSourceToSQL(java.lang.String _source)
_source
- a simple regexCopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.