Loading ...
Sorry, an error occurred while loading the content.
 

Re: [Clip] Re: Stripping image into 2 variables

Expand Messages
  • Don - htmlfixit.com
    ... Are you already in the set of tags you want to pull out? Are you running the whole file to generate a list of these? Or are you doing just one tag set?
    Message 1 of 4 , Jan 26, 2005
      abairheart wrote:
      >
      > --- In ntb-clips@yahoogroups.com, "dvdwriters12" <dvdwriters@s...>
      > wrote:
      >
      >><a href="http://www.somedomain.com/script?dgfdgd"
      >
      > target="_blank"><img
      >
      >>src="http://impgb.somedomain.com/imp/image3456" border=0></a>
      >>
      >>... capture: http://www.somedomain.com/script?dgfdgd
      >>into one varible
      >>AND http://impgb.somedomain.com/imp/image3456
      >>into another variable.
      >
      >
      > First capture the whole thing into one variable, say %temp%,
      > then split it into two at the "><", using and array,
      > finally strip off the extraneous stuff.
      >
      > Key step:
      >
      > ^!SetListDelimiter ><
      > ^!SetArray %banner%=^%temp%
      > ;sets array to three elements:
      > ;1 <a href="http://www.somedomain.com/script?dgfdgd" target="_blank"
      > ;2 img src="http://impgb.somedomain.com/imp/image3456" border=0
      > ;3 /a>
      > ^!Dec %banner0%
      > ;strips off the closing a tag
      > now you can use html clip commands to scarf up the URLs out of the
      > remaining two array elements.
      >
      > Good luck,
      >
      > Abair.

      Are you already in the set of tags you want to pull out?
      Are you running the whole file to generate a list of these? Or are you
      doing just one tag set?

      What do you want to do with the output? Is it copied to the clipboard,
      is it copied to another file?
    • dvdwriters12
      Thanks guys, I managed to finish this clip. Just trying to work on something else now.
      Message 2 of 4 , Jan 27, 2005
        Thanks guys, I managed to finish this clip.

        Just trying to work on something else now.
      Your message has been successfully submitted and would be delivered to recipients shortly.