Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(561)

Unified Diff: lib/core/regexp.dart

Issue 10909266: Document the syntax and semantics of Dart regular expressions (the same as JS regexps). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/regexp.dart
diff --git a/lib/core/regexp.dart b/lib/core/regexp.dart
index a301785095ba48183e203b9d7c683bf3f66e7fdc..f240074fe717838952c1eb9f31a89946263d72a2 100644
--- a/lib/core/regexp.dart
+++ b/lib/core/regexp.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, 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.
@@ -69,6 +69,11 @@ abstract class Match {
/**
* [RegExp] represents regular expressions.
*
+ * 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.
+ *
* [firstMatch] is the main implementation method that applies a regular
* expression to a string and returns the first [Match]. All
* other methods in [RegExp] can build on it.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698