<?php
$string = "<img class=\"img-responsive\" src=\"http://localhost/example-local/sites/example/files/styles/thumbnail/public/news-story/gallery-images/Desert.jpg?itok=bqyr-vpK\" width=\"100\" height=\"75\" alt=\"\" /><blockquote class=\"image-field-caption\">\r\n <p>Desert</p>\n</blockquote>\r\n";
preg_match('~src=\\"(.*?)\\"~i', $string, $matches); print $matches[1];
print "\n\n";
print preg_replace('~.*?src=\\"(.*?)\\".*~is', '$1', $string);
PD9waHAKCiRzdHJpbmcgPSAiPGltZyBjbGFzcz1cImltZy1yZXNwb25zaXZlXCIgc3JjPVwiaHR0cDovL2xvY2FsaG9zdC9leGFtcGxlLWxvY2FsL3NpdGVzL2V4YW1wbGUvZmlsZXMvc3R5bGVzL3RodW1ibmFpbC9wdWJsaWMvbmV3cy1zdG9yeS9nYWxsZXJ5LWltYWdlcy9EZXNlcnQuanBnP2l0b2s9YnF5ci12cEtcIiB3aWR0aD1cIjEwMFwiIGhlaWdodD1cIjc1XCIgYWx0PVwiXCIgLz48YmxvY2txdW90ZSBjbGFzcz1cImltYWdlLWZpZWxkLWNhcHRpb25cIj5cclxuICA8cD5EZXNlcnQ8L3A+XG48L2Jsb2NrcXVvdGU+XHJcbiI7CgpwcmVnX21hdGNoKCd+c3JjPVxcIiguKj8pXFwifmknLCAkc3RyaW5nLCAkbWF0Y2hlcyk7CnByaW50ICRtYXRjaGVzWzFdOwoKcHJpbnQgIlxuXG4iOwoKcHJpbnQgcHJlZ19yZXBsYWNlKCd+Lio/c3JjPVxcIiguKj8pXFwiLip+aXMnLCAnJDEnLCAkc3RyaW5nKTs=