Text in imageSource

Sarah Reichelt sarah.reichelt at gmail.com
Wed Jan 25 20:56:09 EST 2006


On 1/26/06, Jim Ault <JimAultWins at yahoo.com> wrote:
> I put this in my message box and smmmoked it.... :-)
>
> put "<img src=" & quote & "Star.png" & quote & "><img src=" & quote & \
>  "Dash.png" & quote &  "><img src=" & quote & "Dash.png" & quote & \
> "></p>" into item 1 of line 1 of tHTML
> put "<img src=" & quote & "Star.png" & quote & "><img src=" & quote &\
>  "Dash.png" & quote &  "><img src=" & quote & "Dash.png" & quote & \
> "></p>" into item 2 of line 1 of tHTML
> put "<img src=" & quote & "Star.png" & quote & "><img src=" & quote & \
>  "Dash.png" & quote &  "><img src=" & quote & "Dash.png" & quote & \
> "></p>" into item 3 of line 1 of tHTML
>
> get replaceText( tHTML , "(?Ui)<img src.*>","A")
> put tHTML && cr & it
>
> ---result ---  line 2 ------------
> AAA</p>,AAA</p>,AAA</p>
>
> so you may be able to adjust the format and the substitution to do what you
> need.
>

Jim,

You're a genius. I'll need to do some tests and work out exactly what
is going on (since I am a complete regex dummy), but it looks like I
will be able to make it do what I want.

Many thanks,
Sarah



More information about the use-livecode mailing list