Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * [Match] contains methods to manipulate a regular expression match. | 6 * [Match] contains methods to manipulate a regular expression match. |
| 7 * | 7 * |
| 8 * Iterables of [Match] objects are returned from [RegExp] matching methods. | 8 * Iterables of [Match] objects are returned from [RegExp] matching methods. |
| 9 * | 9 * |
| 10 * The following example finds all matches of a [RegExp] in a [String] | 10 * The following example finds all matches of a [RegExp] in a [String] |
| 11 * and iterates through the returned iterable of [Match] objects. | 11 * and iterates through the returned iterable of [Match] objects. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 /** | 62 /** |
| 63 * The pattern to search for in [str]. | 63 * The pattern to search for in [str]. |
| 64 */ | 64 */ |
| 65 Pattern get pattern; | 65 Pattern get pattern; |
| 66 } | 66 } |
| 67 | 67 |
| 68 | 68 |
| 69 /** | 69 /** |
| 70 * [RegExp] represents regular expressions. | 70 * [RegExp] represents regular expressions. |
| 71 * | 71 * |
| 72 * Dart regular expressions have the same syntax and semantics as | |
| 73 * JavaScript regular expressions. See <http://es5.github.com/#x15.10> | |
|
Lasse Reichstein Nielsen
2012/09/17 11:03:14
JavaScript -> ECMAScript.
The es5.github.com page
Mads Ager (google)
2012/09/17 11:42:22
Thanks! Updated.
| |
| 74 * for the specification of JavaScript regular expressions. | |
| 75 * | |
| 72 * [firstMatch] is the main implementation method that applies a regular | 76 * [firstMatch] is the main implementation method that applies a regular |
| 73 * expression to a string and returns the first [Match]. All | 77 * expression to a string and returns the first [Match]. All |
| 74 * other methods in [RegExp] can build on it. | 78 * other methods in [RegExp] can build on it. |
| 75 * | 79 * |
| 76 * Use [allMatches] to look for all matches of a regular expression in | 80 * Use [allMatches] to look for all matches of a regular expression in |
| 77 * a string. | 81 * a string. |
| 78 * | 82 * |
| 79 * The following example finds all matches of a regular expression in | 83 * The following example finds all matches of a regular expression in |
| 80 * a string. | 84 * a string. |
| 81 * | 85 * |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 122 /** | 126 /** |
| 123 * Whether this regular expression matches multiple lines. | 127 * Whether this regular expression matches multiple lines. |
| 124 */ | 128 */ |
| 125 bool get multiLine; | 129 bool get multiLine; |
| 126 | 130 |
| 127 /** | 131 /** |
| 128 * Whether this regular expression is case insensitive. | 132 * Whether this regular expression is case insensitive. |
| 129 */ | 133 */ |
| 130 bool get ignoreCase; | 134 bool get ignoreCase; |
| 131 } | 135 } |
| OLD | NEW |