No backreferences.... It would have been interesting to see a regular expression matching library that does not do backtracking but does support backreferences. Is there a proof that this is mathematically impossible?
RE2: a principled approach to regular expression matching
Posted Dec 14, 2012 19:20 UTC (Fri) by nybble41 (subscriber, #55106)
[Link]
It may be possible to do that sort of match without backtracking, but it certainly wouldn't be a regular expression. The formal definition of a regular expression (concatenation /ab/, repetition /a*/, alternation /a|b/) precludes back-references.