regex help please

Klaus on-rev klaus at major.on-rev.com
Thu Feb 9 16:00:48 EST 2012


Hi guys,

Am 09.02.2012 um 21:52 schrieb Mark Wieder:

> Klaus,
> 
> What Andre said.

Sigh... :-)

> Nonetheless, if you want to continue down the regex path, try
> something like
> 
> get matchText(tText,"(?s)<" & tTag & ">(.*?)</" & tTag & ">",tValue)
> replace "<" & tTag & ">" & tValue </" & tTag & ">" with
>  "<" & tTag & ">" & tNewValue </" & tTag & ">"
>  in tText

well, I did not want to pass the text that I want to overwrite in the XML, 
which I do not now in that moment!
But this is neccesary in Mark's and "zalgo/tony the coming pony"s (????? :-D ) scripts.

I only want to pass the XML text, the tagname and the NEW text to be place inside of these tags.
Any other hints?

> -- 
> Mark Wieder

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com





More information about the use-livecode mailing list