Open h-h-h-h opened 2 years ago
I don't think Prior Art needs to list every existing implementation, but I can look into adding it.
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 thex
flag is taken as\12
followed by3
, and not\123
. However, quantifiers following whitespace or comments apply to the preceding token, sox +
is equivalent tox+
.
BTW, I'm excited to see this proposal and hope it progresses.
Shouldn't XRegExp be mentioned under "Prior Art"?