|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ObjectRegExp
public class RegExp
A regular expression object contains the pattern of a regular expression. It has properties and methods for using that regular expression to find and replace matches in strings. In addition to the properties of an individual regular expression object that you create using the RegExp constructor function, the predefined RegExp object has static properties that are set whenever any regular expression is used.
| Field Summary | |
|---|---|
boolean |
ignoreCase
Whether or not the "i" flag is used with the regular expression. |
| Method Summary | |
|---|---|
String[] |
exec(String str)
Executes a search for a match in its string parameter. |
String |
fromCharCode(Number... num)
Returns a string created by using the specified sequence of Unicode values. |
Number |
indexOf(String searchValue,
Number fromIndex)
Returns the index within the calling String object of the first occurrence of the specified value, starting the search at fromIndex, or -1 if the value is not found. |
Number |
lastIndexOf(String searchValue,
Number fromIndex)
Returns the index within the calling String object of the last occurrence of the specified value, or -1 if not found. |
String |
substring(Number start,
Number end)
Returns a subset of a String object. |
boolean |
test(String str)
Executes the search for a match between a regular expression and a specified string. |
String |
toLowerCase()
Returns the calling string value converted to lowercase. |
String |
toUpperCase()
Returns the calling string value converted to uppercase. |
| Methods inherited from class Object |
|---|
toString |
| Field Detail |
|---|
public boolean ignoreCase
| Method Detail |
|---|
public String toUpperCase()
public String fromCharCode(Number... num)
num - An integer between 0 and 1 less than the length of the string. The default value is 0.public boolean test(String str)
str - The string against which to match the regular expression.public String toLowerCase()
public String substring(Number start,
Number end)
start - An integer between 0 and 1 less than the length of the string.end - An integer between 0 and 1 less than the length of the string.
public Number lastIndexOf(String searchValue,
Number fromIndex)
searchValue - A string representing the value to search for.fromIndex - The location within the calling string to start the search from. It can be any integer between 0 and the length of the string. The default value is the length of the string.public String[] exec(String str)
str - The string against which to match the regular expression.
public Number indexOf(String searchValue,
Number fromIndex)
searchValue - A string representing the value to search for.fromIndex - The location within the calling string to start the search from. It can be any integer between 0 and the length of the string. The default value is 0.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||