Regular expressions

David Beck davethebrv at
Wed Jan 9 22:55:01 CST 2002

1) Where can I find some documentation on Revs implementation of regular

2) (related) I'm trying to convert the HTMLText of a field to standard HTML.
Everything is peachy except that the font sizes go amuck because HTML
doesn't use point sizes. So I'm looking for a way to convert the point sizes
in the HTMLText of the field to standard HTML 1-9 sizes. I would like to do
a replace like:

replaceText "<font size=x>" with "<font size=" & f(x) & ">"

where f(x) returns an approximate conversion from point to HTML font sizes.
If there is not a way to do this with Rev's regular expressions, does anyone
have another solution to this problem?

Thanks in advance,

More information about the use-livecode mailing list