RegExp class

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

RegExp.$1()
factory
RegExp.$2(Object pattern)
factory
RegExp.$3(String pattern, [String? flags])
factory
RegExp.$4(Object pattern, [String? flags])
factory

Properties

compile RegExp Function(String, [String?])

Available on RegExp, provided by the RegExp$Typings extension

getter/setter pair
dotAll bool

Available on RegExp, provided by the RegExp$Typings extension

Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression. Default is false. Read-only.
no setter
exec RegExpExecArray? Function(String)

Available on RegExp, provided by the RegExp$Typings extension

getter/setter pair
flags String

Available on RegExp, provided by the RegExp$Typings extension

Returns a string indicating the flags of the regular expression in question. This field is read-only. The characters in this string are sequenced and concatenated in the following order:
no setter
global bool

Available on RegExp, provided by the RegExp$Typings extension

Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasIndices bool

Available on RegExp, provided by the RegExp$Typings extension

Returns a Boolean value indicating the state of the hasIndices flag (d) used with with a regular expression. Default is false. Read-only.
no setter
ignoreCase bool

Available on RegExp, provided by the RegExp$Typings extension

Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only.
no setter
lastIndex num

Available on RegExp, provided by the RegExp$Typings extension

getter/setter pair
multiline bool

Available on RegExp, provided by the RegExp$Typings extension

Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String

Available on RegExp, provided by the RegExp$Typings extension

Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal.
no setter
sticky bool

Available on RegExp, provided by the RegExp$Typings extension

Returns a Boolean value indicating the state of the sticky flag (y) used with a regular expression. Default is false. Read-only.
no setter
test bool Function(String)

Available on RegExp, provided by the RegExp$Typings extension

getter/setter pair
unicode bool

Available on RegExp, provided by the RegExp$Typings extension

Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular expression. Default is false. Read-only.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

$$ String
@deprecated A legacy feature for browser compatibility
no setter
$$$ String
@deprecated A legacy feature for browser compatibility
no setter
$$1 String
@deprecated A legacy feature for browser compatibility
no setter
$$2 String
@deprecated A legacy feature for browser compatibility
no setter
$$3 String
@deprecated A legacy feature for browser compatibility
no setter
$$4 String
@deprecated A legacy feature for browser compatibility
no setter
$$5 String
@deprecated A legacy feature for browser compatibility
no setter
$$6 String
@deprecated A legacy feature for browser compatibility
no setter
$$7 String
@deprecated A legacy feature for browser compatibility
no setter
$$8 String
@deprecated A legacy feature for browser compatibility
no setter
$$9 String
@deprecated A legacy feature for browser compatibility
no setter
input String
@deprecated A legacy feature for browser compatibility
no setter
lastMatch String
@deprecated A legacy feature for browser compatibility
no setter
lastParen String
@deprecated A legacy feature for browser compatibility
no setter
leftContext String
@deprecated A legacy feature for browser compatibility
no setter
prototype RegExp
no setter
rightContext String
@deprecated A legacy feature for browser compatibility
no setter