regex/HTMLText question

Chris Sheffield cmsheffield at
Tue Dec 15 17:27:10 EST 2009

Thanks, Craig. Unfortunately, this doesn't quite work either. If I were to run:

replace "use" with "<box>use</box" in it

It would not only replace the whole word "use", but also the string "use" in the word "used", so I would end up with something like "<box>use</box>d", which is not the desired result.

On Dec 15, 2009, at 1:56 PM, DunbarX at wrote:

> Right, thanks to all.
> Chris', your original regex question could better be addressed by:
> on mouseup
>    get fld "yourField"
>    replace yourtext with "<box>" & yourtext & "</box>" in it
>    set the htmltext of fld "yourField" to it
> end mouseup
> This would be fast, and easily extendable, since we are just crunching 
> data.
> Not that there isn't a good regex solution as well...
> Craig Newman
> _______________________________________________
> use-revolution mailing list
> use-revolution at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Chris Sheffield
Read Naturally, Inc.

More information about the Use-livecode mailing list