You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm the creator of XRegExp. No need to add it unless you find it helpful to do so, but for what it's worth, XRegExp is a JavaScript library that converts extended regex syntax into native regexes and has supported the x flag (along with line comments and inline comments, which are also mentioned here) since ~2007.
One thing the XRegExp docs call out that I don't currently see mentioned in this proposal is the two potential meanings of describing whitespace with x as "insignificant":
It might be better to think of whitespace and comments as do-nothing (rather than ignore-me) metacharacters. This distinction is important with something like \12 3, which with the x flag is taken as \12 followed by 3, and not \123. However, quantifiers following whitespace or comments apply to the preceding token, so x + is equivalent to x+.
BTW, I'm excited to see this proposal and hope it progresses.
Shouldn't XRegExp be mentioned under "Prior Art"?
The text was updated successfully, but these errors were encountered: