Skip to content
Prev 359494 / 398502 Next

regex - extracting src url

?strsplit  #I think
My "solution" assumes a fixed format for the URL's as shown in your
example. If that is not the case, it doesn't work.
+ BORDER="0" HEIGHT="1" WIDTH="1" ALT="Advertisement">'
[1] "<IMG SRC=\"https://ad.doubleclick.net/ddm/trackimp/N344006.1960500FACEBOOKAD/B9589414.130145906;dc_trk_aid=303019819;dc_trk_cid=69763238;ord=[timestamp];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=?\"\nBORDER=\"0\"
HEIGHT=\"1\" WIDTH=\"1\" ALT=\"Advertisement\">"
[[1]]
[1] "https://ad.doubleclick.net/ddm/trackimp/N344006.1960500FACEBOOKAD/B9589414.130145906;dc_trk_aid=303019819;dc_trk_cid=69763238;ord=[timestamp];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=?"



Cheers,
Bert

Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Mon, Mar 21, 2016 at 9:44 PM, Omar Andr? Gonz?les D?az
<oma.gonzales at gmail.com> wrote: