s="language-dart"><code>string.startsWith('art', 1);                  // true
string.startsWith(new RegExp(r'\w{3}'));      // true
</code></pre>
<p><code>index</code> must not be negative or greater than <a href="dart-core/String/length.html">length</a>.</p>
<p>A <a href="dart-core/RegExp-class.html">RegExp</a> containing '^' does not match if the <code>index</code> is greater than
zero. The pattern works on the string as a whole, and does not extract
a substring starting at <code>index</code> first:</p>
<