$var = '<img src="http://site.com/some_directory/filename.png"/>';
png
can be replaced with any extension.
How to cut everything, except "filename" part?
And write into new variable. In this case:
$name = 'filename';
One more example:
$var = '<img src="http://site.com/directory/subdirectory/Pakahontos.txt"/>';
$name = 'Pakahontos';
Thanks.