APM: replacing tab separated blanks

Tom.Bakken Tom.Bakken at tx.usda.gov
Wed Dec 4 11:13:41 CST 2002


I want to replace the following:

TabTabTabTab

with:

Tab0Tab0TAb0

when I use s/TabTab/Tab0Tab/g

it only substitutes every other 0 because it begins searching AFTER the
last pattern match.
Is there anything like a gsub or tricky regular expression I could use
to avoid splitting each line and testing each element?

-- 
Tom Bakken



More information about the Austin mailing list