I want to search and replace a string in vim with preserving the variable part of string. for example:
StringA("variable1")
StringA("variable2")
StringA("variable3")
StringA("variable4")
replace this with:
StringA("variable1", new_constant_string)
StringA("variable2", new_constant_string)
StringA("variable3", new_constant_string)
StringA("variable4", new_constant_string)
What i want to do is search for
s/StringA(*)
and replace it with
s/StringA(*)/StringA(*, new_constant_string)
where (*= variable1,variable2,variable3,variable4 and is preserved)