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

[GR-57588] Implement Regular Expression Pattern Modifiers #854

Open
fniephaus opened this issue Sep 26, 2024 · 0 comments
Open

[GR-57588] Implement Regular Expression Pattern Modifiers #854

fniephaus opened this issue Sep 26, 2024 · 0 comments
Assignees
Labels
proposal ECMAScript Proposals

Comments

@fniephaus
Copy link
Member

TL;DR

We plan to implement Regular Expression Pattern Modifiers in GraalJS.

Details

Adds support for inline RegExp pattern modifiers. Modifiers allow you to change the currently active RegExp flags within a subexpression. (?imsx-imsx:subexpression) — Sets or unsets (using -) the specified RegExp flags for the subexpression.

Example:

const re2 = /^(?i:[a-z])[a-z]$/;
re2.test("ab"); // true
re2.test("Ab"); // true
re2.test("aB"); // false
@fniephaus fniephaus added the proposal ECMAScript Proposals label Sep 26, 2024
@fniephaus fniephaus added this to the Planned for the Future milestone Sep 26, 2024
@fniephaus fniephaus moved this to Todo in GraalJS Roadmap Sep 26, 2024
@fniephaus fniephaus changed the title Implement Regular Expression Pattern Modifiers [GR-57588] Implement Regular Expression Pattern Modifiers Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal ECMAScript Proposals
Projects
Status: Todo
Development

No branches or pull requests

2 participants