%s@{fileID: \(213[0-9]*\)@\='{fileID: '.(submatch(1)-1900)@
I am using this regex search and replace command in vim to subtract a constant from each matching id.
I can do the regex find in VSCode but how can I reference the submatch
for maths & replace? submatch(1)
does not work in VSCode?
Thanks.
(.*)
` with `\n\t\t\t\t\t\t$1\n\t\t\t\t\t
` for a 2000 line file. Imagine me doing it manually. – Bishwas Mishra Jun 19 '19 at 16:40