in reply to regex to match one nasty javascript line

Are you just trying to extract the link?
while( <DATA> ){ s|\'\+\'||g; m/.*(http.*)\"/; print $1, "\n"; } __DATA__ document.write('<'+'img '+'src='+'"http://im'+'ages.site.com/ima'+'ges +/full/'+'16/'+'167/1676892130'+'.jpg"'+'><'+'BR>');

Replies are listed 'Best First'.
Re^2: regex to match one nasty javascript line
by johngg (Canon) on Nov 27, 2006 at 19:12 UTC
    Just a minor point. Single- and double-quotes are not regular expression metacharacters so they don't need to be escaped.

    Cheers,

    JohnGG