dart Regular Expressions

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9


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


String sourceThe regular expression as a String
{bool multiline}Whether this is a multiline regular expression. (matches ^ and $ at the beginning and end of each line individually not the whole String)
{bool caseSensitive}If the expression is case sensitive


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.

Got any dart Question?