Replace using VIM, reuse part of the search pattern
\0
is the whole match. To use only part of it you need to set it like this and use \1
.s/(\([0-9]*\))/{\1}/
More detailed instruction you can find here or in vim help.
\0
is the whole match. To use only part of it you need to set it like this and use \1
.s/(\([0-9]*\))/{\1}/
More detailed instruction you can find here or in vim help.