We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71af60a commit c203064Copy full SHA for c203064
1 file changed
std/EReg.hx
@@ -66,11 +66,15 @@ class EReg {
66
`this.matchSub`, and then operates on the String of that operation.
67
68
The index `n` corresponds to the n-th set of parentheses in the pattern
69
- of `this` EReg. If no such sub-group exists, the result is unspecified.
+ of `this` EReg. If `n` equals 0, the whole matched substring is returned.
70
71
- If `n` equals 0, the whole matched substring is returned.
+ If the sub-group `n` was defined in the pattern but did not participate
72
+ in the match, `null` is returned.
73
+
74
+ If no sub-group with index `n` exists in the pattern, the result is
75
+ unspecified.
76
**/
- public function matched(n:Int):String {
77
+ public function matched(n:Int):Null<String> {
78
return null;
79
}
80
0 commit comments