Is it possible to make lookahead or lookbehind zero-width assertions in
sed? I want to emulate Perl's
(?=) and family.
My sed is not GNU sed version 4.0.
No, there aren't. You only have basic regular expressions, which only have character sets (
Many uses of zero-width assertions can be emulated with general regular expressions, using backreferences. For example, the Perl