%s@{fileID: \\(213[0-9]*\\)@\\=\'{fileID: \'.(submatch(1)-1900)@
I am using this regex search and replace command in vim to subtract a constant fro
To augment Benjamin's answer with an example:
Find Carrots(With)Dip(Are)Yummy Replace Bananas$1Mustard$2Gross Result BananasWithMustardAreGross
Anything in the parentheses can be a regular expression.