Input:
Animal {cow.<span>moo</span>} <span>noises</span>
Output:
Animal {cow.moo} <span>noises</span>
How could I match only the <span>
inside the braces for replacement?
I have got as far as matching everything between the braces with
(?<=\{)(.*?)(?=\})
Any help would be greatly appreciated.