Regex's are useful when you're trying to match variations. For example, if you tag was constant except for the domain in the "src" element or the whitespace. Stefan and Andy are exactly correct, but the (working) regex you now have is still no different than the string literal in my answer above.
So both the regex and the string are equivalent, and both match:
'<img src="http://www.domain.com/test.asp" width="1" height="1" />'.match(/<img src="http:\/\/www\.domain\.com\/test\.asp" width="1" height="1" \/>/)
=> #<MatchData:0x5ebbf90>
vs
'<img src="http://www.domain.com/test.asp" width="1" height="1" />'.match('<img src="http://www.domain.com/test\.asp" width="1" height="1" />')
=> #<MatchData:0x5eb6cac>
If you want to match subtle variations (for example, the whitespace isn't always exactly one space, sometimes it's 1 space, sometimes 2, others 3, etc.) then you need a regex, not a string, but the current regex won't match either because it's just doing an exact match (because it's not using any regex stuff at all - it might as well be a string). Eg, 2 spaces after "img":
'<img src="http://www.domain.com/test.asp" width="1" height="1" />'.match(/<img src="http:\/\/www\.domain\.com\/test\.asp" width="1" height="1" \/>/)
=> nil
But a regex actually using power of regex with special regex characters will match - note the "\s+" after "img", which will match 1..n whitespace characters:
'<img src="http://www.domain.com/test.asp" width="1" height="1" />'.match(/<img\s+src="http:\/\/www\.domain\.com\/test\.asp" width="1" height="1" \/>/)
=> #<MatchData:0x5e94fbc>
Also, I might not have been explicit enough last time, but it's pretty important that you specify what language you're working in. Like Tim pointed out, regex can vary between lanuages so an answer could be correct but not work for you depending on whether you're both using Ruby or C# or Java or whatever.