Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-JSR-3
-
None
Description
string.eachMatch(pattern_str) { match ->
found += match[0] + ' '
}
// but
(string=~ pattern_str).each { match ->
found += match + ' '
}
=> match vs match[] handling inconsistent
Attachments
Attachments
Issue Links
- relates to
-
GROOVY-1630 each(Matcher,Closure) doesn't work for patterns with groups; plus other regex issues [minor breaking change]
- Closed