Deleting a function from every script

Hello,
I got dozens of module scripts that I use for my game’s skills. However in each one of them I have a copy of a function that I now moved on a single module script, which means I now need to remove that function from every script.
Doing CTRL+SHIFT+F doesn’t really help as it only removes the line of the function’s name not the whole block.

Thanks

You might be able to use the .+ string detector within string.gsub to replace the entire functions in all scripts. However, be careful, because I’ve had experience of this deleting everything below the start point specified.