Hi MaLpAsO! On Mo, 22 Mär 2010, MaLpAsO wrote:
> I would like to know how I can use a successful pattern match > containing wild characters in the replace patters. > Egg: > I want to search for patterns like "IN-a3-OUT", "IN-11-OUT" and > replace it with patterns like "IN-a3-", "IN-11-" > i.e. I will be searching like s/IN-.*-OUT/ > How can I do this replacement Not sure I understood. Does this what you want: :%s/IN-\w\+-\zsOUT\ze//g regards, Christian -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
