Regular Expressions

suggest change

Syntax

var regExp = RegExp(r'^(.*)$', multiLine: true, caseSensitive: false);

Parameters

Parameter Details
String source The regular expression as a String.
{bool multiLine} Whether this is a multiline regular expression. It matches ^ and $ at the beginning and end of each line, not only the whole string.
{bool caseSensitive} Whether the match is case sensitive.

Remarks

Dart regular expressions have the same syntax and semantics as JavaScript regular expressions. See http://ecma-international.org/ecma-262/5.1/#sec-15.10 for the specification of JavaScript regular expressions.

This means that any JavaScript resource you find about regular expressions online applies to Dart.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents