Patches applied: * bonzini@gnu.org--2004b/sed--stable--4.1--patch-33 do not use leftmost-longest matching for addresses. git-archimport-id: bonzini@gnu.org--2004b/sed--ssed--3.61--patch-15
6 lines
262 B
Sed
6 lines
262 B
Sed
# Starting from sed 4.1.3, regexes are compiled with REG_NOSUB
|
|
# if they are used in an address, so that the matcher does not
|
|
# have to obey leftmost-longest. The tricky part is to recompile
|
|
# them if they are then used in a substitution.
|
|
/\(ab*\)\+/ s//>\1</g
|