Ay ay ay @ibilon . I should not trust the docs so much eh?
I thought matched only works after match, as written in the EReg API:
matched
This method should only be called after this.match or this.matchSub , and then operates on the String of that operation.
But deep inside, I was rather stupefied. How could something like this NOT be there!? I was thinking “this MUST work somehow, but maybe I’m missing some serious design consideration why it doesn’t”.
Yah yah yah I also realized that as soon as @ibilon’s answer came in. But come on, this thing should be mentioned in the docs more clearly. I think I could make a PR for this right? Docs get built once the PR is approved?
For the real curious:
Each Haxe build outputs documentation xml for the standard library, it uses -xml -D doc-gen to generate the xmls. These files are automatically committed to this location api.haxe.org/xml at master · HaxeFoundation/api.haxe.org · GitHub
When there is a commit in this repo, a tool there runs dox (documentation generator) for each version, and puts that online.