Regular expressions

Jeanne A. E. DeVoto jeanne at runrev.com
Sun Jan 13 23:25:01 EST 2002


At 7:53 PM -0800 1/9/2002, David Beck wrote:
>1) Where can I find some documentation on Revs implementation of regular
>expressions?

Check the matchText, matchChunk, and replaceText functions.

The See Also list in all these terms has a regular expressions reference
that will give you all the operators supported.

Rev's regex engine is greedy, so the sort of thing you want to do with HTML
tags is a bit difficult (because the regular expression wants to grab
everything up to the last >). About the best I can offer offhand is to use
replaceText in a repeat loop, checking one possible font size every
iteration. A bit ugly but it will get the job done. Maybe someone has a
more elegant solution?

--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
http://www.runrev.com/
Runtime Revolution Limited - Power to the Developer!





More information about the use-livecode mailing list