I am trying to migrate static factory method to a centralized factory:
calls to TemplateContentImpl.newInstance(owner) need to be replaced to
There are dozens of classes like TemplateContentImpl and hundreds of calls
I can find all of the call using structural search just fine and replace
them too. The problem is in Impl part.
newTemplateContent(owner) could be easilly constructed from origibal class
name TemplateContentImpl in structural replace if I only knew how to get rid
of Impl part. If I am not mistaken regular expression allow deletion of any
given number of symbols in replacement text. Can I use regular expression in
structural replace template?
Are there any better way to accomplish it?