Re: subsitute certain repeated pattern in a line
- On Thu, 30 Mar 2006, Edward Wong wrote:
> Dear Tim,Here's another way:
>>> My brain is stuck and I feel that I'm loosing my energy
>>> like a balloon...Now I'm thinking neither any vim pattern
>>> nor regexp but a hot lovely Starbuck coffee. ;-)
>> Haven't had my coffee, but then again, I'm not much of a
>> coffee drinker. However, I'm fueling my little grey cells
>> with bagel pizzas for dinner.
> Bagel and pizzas sound a lot more healthier than coffee to me. :)
> It works great Tim! I have never used submatch before. Definitely it's
> going to be helpful in a lot of cases. Thank you very much again.
This follows the regex search pattern of searching the <n>th occurrence
Hope this helps.