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

JavaScript regex is limited #2

Open
kritixilithos opened this issue Feb 13, 2017 · 5 comments
Open

JavaScript regex is limited #2

kritixilithos opened this issue Feb 13, 2017 · 5 comments

Comments

@kritixilithos
Copy link
Owner

The title says it all. For example, lookbehinds are not supported in JS regex. And since Carrot is a string-based language that relies on regex, JS regex will only limit Carrot. To fix this, either I need to create an interpreter in Java, or create a regex engine myself (both of which are unlikely). This is undecided at the moment, probably will look into it once Carrot has more functions.

@somebody1234
Copy link

If you don't mind porting to node then perl-regex would work

@somebody1234
Copy link

It doesn't seem that hard to port to Java though (although clearly Perl regex is superior :P)

@kritixilithos
Copy link
Owner Author

@somebody1234 It is written in node as of now

@kritixilithos
Copy link
Owner Author

Ehh, Java is unlikely now, I gotten use to JS's hackiness :P Thanks I will take a look into that package

@somebody1234
Copy link

BTW, it's just Perl 5 bindings

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

No branches or pull requests

2 participants