Hi, epanda wrote: > > I would like to apply a built-in func on a backreference in one shot > substitute command. > > > %s/<description>\(\w\+\)</description>/\=<description>tolower(\1)</ > description>/
%s/<description>\(\w\+\)</description>/\='<description>' . tolower(submatch(1)) . '</description>'/ Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin) -- 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, reply using "remove me" as the subject.
