only in this topic
Open this post in threaded view
I'm a little bit confused about the regex API. I want to iterate over all matches of a string. How can I do that using EReg?
I expect something like that:
var r:EREg = ~/^//(.*)$/m;
var s = "//Match1\n//Match2\n /* Test */\n//Match3";
var matcher = r.matcher(s);
I probably thought of using matchedRight somehow to get the substring to use for the next match call. But is this correct?
Return to Haxe
1 view|%1 views
Free forum by Nabble
Edit this page