@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="RegExp")
public class RegExp
extends JsObject
| Modifier and Type | Field and Description |
|---|---|
int |
lastIndex |
| Constructor and Description |
|---|
RegExp(java.lang.String pattern) |
RegExp(java.lang.String pattern,
java.lang.String flags) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dotAll()
The dotAll property indicates whether or not the "s" flag is used with the regular expression.
|
RegExpResult |
exec(java.lang.String text)
The exec() method executes a search for a match in a specified string.
|
java.lang.String |
flags()
The flags property returns a string consisting of the flags of the current regular expression object.
|
boolean |
global()
The global property indicates whether or not the "g" flag is used with the regular expression.
|
boolean |
ignoreCase()
The ignoreCase property indicates whether or not the "i" flag is used with the regular expression.
|
boolean |
multiline()
The multiline property indicates whether or not the "m" flag is used with the regular expression.
|
java.lang.String |
source()
The source property returns a String containing the source text of the regexp object, and it doesn't contain the two forward slashes on both sides and any flags.
|
boolean |
sticky()
The sticky property reflects whether or not the search is sticky (searches in strings only from the index indicated by the lastIndex property of this regular expression).
|
boolean |
test(java.lang.String text)
The test() method executes a search for a match between a regular expression and a specified string.
|
java.lang.String |
toString_()
The toString() method returns a string representing the regular expression.
|
boolean |
unicode()
The unicode property indicates whether or not the "u" flag is used with a regular expression.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, valuespublic RegExp(@RegExpLanguage @Nonnull java.lang.String pattern, @RegExpFlags @Nonnull java.lang.String flags)
public RegExp(@RegExpLanguage @Nonnull java.lang.String pattern)
@JsProperty(name="dotAll") public boolean dotAll()
@JsProperty(name="flags") @RegExpFlags @Nonnull public java.lang.String flags()
@JsProperty(name="global") public boolean global()
@JsProperty(name="ignoreCase") public boolean ignoreCase()
@JsProperty(name="multiline") public boolean multiline()
@JsProperty(name="source") @RegExpLanguage @Nonnull public java.lang.String source()
@JsProperty(name="sticky") public boolean sticky()
@JsProperty(name="unicode") public boolean unicode()
@Nullable public RegExpResult exec(@Nonnull java.lang.String text)
public boolean test(@Nonnull
java.lang.String text)
@JsMethod(name="toString") @Nonnull public java.lang.String toString_()