I want to get the link from src atribute by specific ID
For example I have following bbcode tags:
[img alt="" src="http://google.com" id="image"]
[img src="http://google.com" id="image2" alt=""]
[img id="image3" src="http://google.com" alt=""]
I tried with \[img(?:[^]]+src="(.+?)"[^]]+(?:id|class)="image"|[^]]+(?:id|class)="image"[^]]+src="(.+?)")
but for the second image it doesnt work