Regex stickiness
Closed this issue · 2 comments
arseniiv commented
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.
Deleted user commented
I think it would have been more appropriate to have opened this over at eclipse/ceylon-sdk.
arseniiv commented
Oops. Opened there, this will be deleted.
P. S. I can’t delete it, it seems.