I have fetch id 91 from this
<img width="526" height="339" style="float: none;" src="http://www.test.com/files/thumb/91/595" class="pyro-image" alt="floyd mayweather">
i have tried this using explode and strip tags but not able to get this. its a string which will keep changing according the images.Please help.
If I have understood your question correctly, then the following regex should work for you (note, Regex and HTML are not friends, but you can use this instead of an HTML parser, if it’s not more complicated than this).
A regex of
#<img.*src.*/files/thumb/([0-9]+)/([0-9]+).*>#should work:Outputs