Dart API Referencedart:coreimplJSSyntaxRegExp

JSSyntaxRegExp class

class JSSyntaxRegExp implements RegExp {
  external const JSSyntaxRegExp(String pattern,
                                {bool multiLine: false,
                                 bool ignoreCase: false});
  external Match firstMatch(String str);
  external Iterable<Match> allMatches(String str);
  external bool hasMatch(String str);
  external String stringMatch(String str);
  external String get pattern;
  external bool get multiLine;
  external bool get ignoreCase;
}

Implements

RegExp

Constructors

const JSSyntaxRegExp(String pattern, [bool multiLine = false, bool ignoreCase = false]) #

external const JSSyntaxRegExp(String pattern,
                              {bool multiLine: false,
                               bool ignoreCase: false});

Properties

final bool ignoreCase #

Whether this regular expression is case insensitive.

docs inherited from RegExp
external bool get ignoreCase;

final bool multiLine #

Whether this regular expression matches multiple lines.

docs inherited from RegExp
external bool get multiLine;

final String pattern #

The pattern of this regular expression.

docs inherited from RegExp
external String get pattern;

Methods

Iterable<Match> allMatches(String str) #

Returns an iterable on the matches of the regular expression in str.

docs inherited from RegExp
external Iterable<Match> allMatches(String str);

Match firstMatch(String str) #

Searches for the first match of the regular expression in the string str. Returns null if there is no match.

docs inherited from RegExp
external Match firstMatch(String str);

bool hasMatch(String str) #

Returns whether the regular expression has a match in the string str.

docs inherited from RegExp
external bool hasMatch(String str);

String stringMatch(String str) #

Searches for the first match of the regular expression in the string str and returns the matched string.

docs inherited from RegExp
external String stringMatch(String str);