Hi.
If you're only looking for a solution for that specific test string, you can use the fact that the second match line is the only one that contains alt="Green img" to identify it:
id="zoom-product-image" src="Mehr