|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taleo.integration.client.customstep.util.RegexUtils
public class RegexUtils
This class contains a static function that will escape special character used within a string to ensure that the string will not parse as a regular expression. This is important when accepting user input and then using that input within a function that accepts regular expressions as an argument. To ensure that the user's input does not interfere with the function all of the regular expression characters are escaped.
Constructor Summary | |
---|---|
RegexUtils()
|
Method Summary | |
---|---|
static java.lang.String |
escapeRegex(java.lang.String inStr)
This function will escape special characters within a string to ensure that the string will not be parsed as a regular expression. |
static java.lang.String |
escRegEx(java.lang.String inStr)
This procedure is used to ensure that a string is not interpreted as a regular expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegexUtils()
Method Detail |
---|
public static java.lang.String escapeRegex(java.lang.String inStr)
inStr
- - argument which we wish to escape.
public static java.lang.String escRegEx(java.lang.String inStr)
strIn
- - a string that we want to ensure does not interfere with a
regular expression.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |