Posted By

albertomori on 02/11/09


Tagged

html regexep


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

vali29
Meander365
Tyster
wirenaught


Regular expression: catch img src attribute in html


 / Published in: Regular Expression
 

  1. \< *[img][^\>]*[src] *= *[\"\']{0,1}([^\"\'\ >]*)

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: eno on February 11, 2009

it's more reliable to use HTML/XML parser, like Perl's HTML::Parser module

You need to login to post a comment.