Quantcast
Channel: Are there zero-width assertions in sed? - Unix & Linux Stack Exchange
Browsing all 2 articles
Browse latest View live

Answer by Gilles 'SO- stop being evil' for Are there zero-width assertions in...

No, there aren't. You only have basic regular expressions, which only have character sets (. and […]), repetition (* and \{m,*n*\}), line anchors (^ and $) and grouping \(…\), plus backreferences \N....

View Article



Are there zero-width assertions in sed?

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.

View Article
Browsing all 2 articles
Browse latest View live




Latest Images