Getting the text content of a HTML page
Richard Gaskin
ambassador at fourthworld.com
Mon Aug 4 11:25:23 EDT 2008
viktoras didziulis wrote:
> one more way to do things using regular expressions:
>
> put the replaceText(myText,"</?[A-Za-z]+>","") into myText
>
> will simply replace all tags with empty string. Where myText is the text
> where replacements have to be made. </?[A-Za-z]+> is a regular
> expression matching most html tags and "" is empty replacement string.
Always looking for potential optimizations, I was going to benchmark
that here but couldn't get it to work, even after removing "the". :(
--
Richard Gaskin
Managing Editor, revJournal
_______________________________________________________
Rev tips, tutorials and more: http://www.revJournal.com
More information about the use-livecode
mailing list