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

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -