Regular expression issues

Ok here is what I’m attempting to do.

I want to go though HTML code and replace all the

<img src=“XXX”>

with

<img src="<a href="#">XXX</a>">

i need the src names to become links.

Is regular expressions the answer and if so what would it be?

Thanks guys