public class RegexUtils extends Object
Constructor and Description |
---|
RegexUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isSimpleAnchored(String pattern) |
static boolean |
isSimpleEndsWith(String pattern) |
static boolean |
isSimpleStartsWith(String pattern) |
static boolean |
noMetaChars(String string,
int fromIndex) |
static boolean |
noMetaChars(String string,
int fromIndex,
int endIndex)
check for any regular expression metacharacters between the index point (inclusive,exclusive)
|
static String |
regexToLike(String pattern) |
public static boolean noMetaChars(String string, int fromIndex)
public static boolean noMetaChars(String string, int fromIndex, int endIndex)
public static boolean isSimpleStartsWith(String pattern)
public static boolean isSimpleAnchored(String pattern)
public static boolean isSimpleEndsWith(String pattern)
Licenced under the Apache License, Version 2.0