Assuming that you want to match specifically the src property in an tag.
You can use this Regex because it will match the tag, still preserve other properties it might have and also other content inside the src property:
var matches = string.match(/]+)src="[/]?([^"]+)"([^>]*)>|<( *)img( *)[/>|>]/g);
it can be improved but works fine with some varieties of typing.
for example, if you want to match or even to add something to the url, you can do the following replacement:
string.replace(/]+)src="[/]?([^"]+)"([^>]*)>|<( *)img( *)[/>|>]/g, '
');