javascript - RegExp to get src form url -
i have string:
<img class="ui mini avatar image" src="http://graph.facebook.com/fsdgfdgfdgsdfgdfgdfg564d6/picture/?type=large"> facebook
like this, how can ghet url string? part
http://graph.facebook.com/fsdgfdgfdgsdfgdfgdfg564d6/picture/?type=large
if use jquery, can this:
var sourceurl = $('.image').attr('src'); // here i'm accessing class name.
Comments
Post a Comment