[Issue 4627] Ideas for std.regex.match usage syntax
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 6 08:46:05 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4627
Dmitry Olshansky <dmitry.olsh at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dmitry.olsh at gmail.com
--- Comment #1 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2011-06-06 08:41:35 PDT ---
It works exactly like that.
Keeping in mind that captures is a range [full match, submatch0, submatch1,
...] fro a given match.
And foreach (m; match(text, r"\d")) { ... } iterates over consecutive matches
of regex (if "g" option is set, otherwise it's one iteration).
Resolved ?
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list