> what is written as \(f..\)\1 in BRE is written as (f..)\1 in ERE
Oddly, there are no backreferences in POSIX EREs.
Oddly, there are no backreferences in POSIX EREs.
Quoting from <https://pubs.opengroup.org/onlinepubs/9699919799.2008edition...>:
> It was suggested that, in addition to interval expressions, back-references ( '\n' ) should also be added to EREs. This was rejected by the standard developers as likely to decrease consensus.
Updated my comment to present a better example that avoids back-references. Thanks!