Update: Some of the functionality discussed here has made its way into later versions of XRegExp.
So, I'll admit that XRegExp 0.1, though hopefully interesting or useful for some people, was scaled back from my original plans. There were two reasons for this:
- To get it out the door.
However, if I don't worry about the regexes being used with built-in methods, and instead create custom methods (possibly with names like
xexec, etc.), a number of significant, additional features become technically possible to mimic. Things like atomic groups, possessive quantifiers, named capture, and even infinite-length lookbehinds (though lookbehinds would have to be limited to appearing at the start and/or end of regexes, or alternatively not be used together with lookaheads).