Yeah, vim is awesome. :%s/\zsalert\ze(.*)/alert2 did the trick

Just have to rename it to something more legitmate and representative of
the function itself.