Due to a mistake in coding style guidelines I would like to rename a lot of the variables in my project. I can change each one using a regular expression, but is there a way of limiting it to only changing variables (specifically fields)? I thought that I would be able to do this with the structural search, but it seems that isn't the case.
If there isn't an easy way, how hard would it be to write a plugin that renames variables? I have never written a plugin before :)