Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Regex stickiness #698

Open
arseniiv opened this issue Feb 23, 2018 · 0 comments
Open

Regex stickiness #698

arseniiv opened this issue Feb 23, 2018 · 0 comments

Comments

@arseniiv
Copy link

[Previously opened in a wrong repo, sorry.]

Some time ago, Javascript got a stickiness flag y. Now Ceylon can have cross-platform sticky regexes, as in Java it is implemented (as \G boundary condition at the start of the pattern) since at least Java 7 (possibly earlier).

Relevant docs about sticky mode:

About compatibility issues: one can easily test if y is supported, via creating RegExp('', 'y') and catching an (or no) exception.

Maybe other useful additions have appeared in JS, too.

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

No branches or pull requests

1 participant