-
-
Notifications
You must be signed in to change notification settings - Fork 670
RegExp support #1188
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
Comments
RegExp isn't implemented yet. Plan is to derive something from a battle-tested C library eventually, but until then all one can do is to call out to JS or use a different mechanism, like string methods, if that's an option. |
Thanks Daniel for the quick reply. |
Not a high priority in roadmap at the moment. |
Ok, thanks for the quick response guys. I spoke to my team and this is a showstopper for us. |
Should this issue really be closed? It seems like a fairly big missing feature of assemblyscript :/ |
You can find a pretty feature-complete Regex library for AssemblyScript here https://github.com/ColinEberhardt/assemblyscript-regex |
Hello,
I've been playing around with AssemblyScript and I noticed it still doesn't have RegExp object implemented: https://github.com/AssemblyScript/assemblyscript/blob/master/std/assembly/regexp.ts
I am able to compile the following code:
const regex : RegExp = new RegExp('hi');//return true; return regex.test('hi, i am peter');
But not able to execute it:
Is this in your roadmap? Is there another way to use regular expressions in AS?
Thank you
The text was updated successfully, but these errors were encountered: