Files
Paolo Bonzini a3f130089b do not use leftmost-longest matching for addresses.
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
2008-01-09 16:13:59 +01:00

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