|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.ephyra.util.RegexConverter
public class RegexConverter
The RegexConverter can be used to tranform a string into a
regular expression and to build a query string from a regular expression.
| Constructor Summary | |
|---|---|
RegexConverter()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
regexToQueryStr(java.lang.String regex)
Returns a query string that is derived from the regular expression. |
static java.lang.String |
strToRegex(java.lang.String expr)
Transform a string into a regular expression that matches the string. |
static java.lang.String |
strToRegex2(java.lang.String expr)
Transforms a string into a regular expression that describes a regular expression that matches the string by applying the method strToRegex() twice. |
static java.lang.String |
strToRegexWithBounds(java.lang.String expr)
Transforms a string into a regular expressions and adds word boundaries if the first/last character is a word character. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegexConverter()
| Method Detail |
|---|
public static java.lang.String strToRegex(java.lang.String expr)
expr - a string
public static java.lang.String strToRegex2(java.lang.String expr)
strToRegex() twice.
expr - a string
public static java.lang.String strToRegexWithBounds(java.lang.String expr)
expr - a string
public static java.lang.String regexToQueryStr(java.lang.String regex)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||