Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-capturing regex groups are not supported #41

Closed
sebthom opened this issue Jan 3, 2017 · 1 comment
Closed

Non-capturing regex groups are not supported #41

sebthom opened this issue Jan 3, 2017 · 1 comment

Comments

@sebthom
Copy link
Contributor

sebthom commented Jan 3, 2017

class Test {
    static function main() {
        var pattern = ~/(:?[a-z])/i;
        trace(pattern.match("a"));
    }
}

results in:

Non capturing groups '(?:' are not supported in macros
C:\apps\dev\haxe-3.4.0-rc1\std/hl/_std/EReg.hx:37: Called from fun@30 @x1C
@ncannasse
Copy link
Member

They are not supported in the interpreter, but are working correctly with HL JIT or HL/C.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants