I want to get src in image based on class or id.
Ex. On html page there are many <img src="url">
but only one have a class or id:
<img src="url" class="image" or id="image">
How to get right src attribute wich have a specific class or id?
Pls regex not dom
I gonna explain you why I dont want to use dom or other libraries because I'm getting a html page from an other site which not allow fopen or _file_get_contents or DOM but only Curl could do this. Sure I have a reason why I not use these libraries like simplehtmldom because sometimes is impossible to get remote html page and I should make by myself some scripts.