Sunday, February 28, 2010

Capturing group in regex

Lets say I want to search all number [0-9] with regex
and what to put a "_" sign after every number.

Normally I can capture the group using $1
but this doesn't work in gvim.


:s%/[0-9]/$1_/g --> doesn't work.

tnx in advance.

--
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

No comments:

Post a Comment