irregular expression

Mark Greenberg markgreenberg at cox.net
Sat Jul 15 15:41:34 EDT 2006


Thanks, Dar. I knew it would be something stupid I was missing.  I  
wish, instead of sending me spam to increase my manhood, they would  
send ads for a pill that would make me see the obvious. : \

       Mark

On Jul 15, 2006, at 10:00 AM, Dar Scott wrote:

>
>>> put replacetext(myVar,"</?a[^>]*>","") into myVar
>
>>  but why do you have /? in your RegEx string?
>
> I think I can guess that one, Mark.  From one of my pages:
>
>        <a href="rev.html">Revolution</a><br>
>
> I think Terry's intent is to change that to this:
>
>        Revolution<br>
>
> So both the <a and </a must be matched.  The optional slash does that.
>
> (The regex does not handle a ">" in an attribute string, say, for
> title, but maybe there cannot be one.)




More information about the Use-livecode mailing list