blob: 80b4634a44d0dc83028ca2ca590a509e29b56d31 [file] [log] [blame]
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
main() {
var matches =
new RegExp("(a(b)((c|de)+))").allMatches("abcde abcde abcde");
var it = matches.iterator();
int start = 0;
int end = 5;
while (it.hasNext) {
Match match = it.next();
Expect.equals(start, match.start);
Expect.equals(end, match.end);
start += 6;
end += 6;
}
}