public class RegExp extends Objs
Objs.Constructor<T extends Objs>, Objs.Property<T>
Modifier and Type | Field and Description |
---|---|
static String |
$1 |
static String |
$2 |
static String |
$3 |
static String |
$4 |
static String |
$5 |
static String |
$6 |
static String |
$7 |
static String |
$8 |
static String |
$9 |
Objs.Property<Boolean> |
global
Returns a Boolean value indicating the state of the global flag (g) used with a regular expression.
|
Objs.Property<Boolean> |
ignoreCase
Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression.
|
Objs.Property<Number> |
lastIndex |
static String |
lastMatch |
Objs.Property<Boolean> |
multiline
Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression.
|
static RegExp |
prototype |
Objs.Property<String> |
source
Returns a copy of the text of the regular expression pattern.
|
Modifier | Constructor and Description |
---|---|
protected |
RegExp(Objs.Constructor<?> c,
Object js) |
|
RegExp(String pattern) |
|
RegExp(String pattern,
String flags) |
Modifier and Type | Method and Description |
---|---|
static RegExp |
$as(Object obj) |
RegExp |
compile() |
RegExpExecArray |
exec(String string)
Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
|
Boolean |
global() |
Boolean |
ignoreCase() |
Number |
lastIndex() |
Boolean |
multiline() |
static RegExp |
newRegExp(String pattern) |
static RegExp |
newRegExp(String pattern,
String flags) |
String |
source() |
Boolean |
test(String string)
Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
|
$as, $cast, $delete, $get, $js, $set, create, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, newObject, newObject, preventExtensions, propertyIsEnumerable, seal, toLocaleString, toString, valueOf
public Objs.Property<String> source
public Objs.Property<Boolean> global
public Objs.Property<Boolean> ignoreCase
public Objs.Property<Boolean> multiline
public Objs.Property<Number> lastIndex
public static RegExp prototype
public static String $1
public static String $2
public static String $3
public static String $4
public static String $5
public static String $6
public static String $7
public static String $8
public static String $9
public static String lastMatch
protected RegExp(Objs.Constructor<?> c, Object js)
public RegExp(String pattern)
public String source()
public Boolean global()
public Boolean ignoreCase()
public Boolean multiline()
public Number lastIndex()
public RegExp compile()
public RegExpExecArray exec(String string)
string
- The String object or string literal on which to perform the search.public Boolean test(String string)
string
- String on which to perform the search.Copyright © 2018. All rights reserved.