Replacetext of any characters between parentheses with a space

Paul Dupuis paul at researchware.com
Thu Jun 10 09:59:42 EDT 2021


On 6/9/2021 1:10 PM, Paul Dupuis via use-livecode wrote:
> on mouseup
>   put field "import" into timport
>   put replacetext(timport,"(.*)"," ") into field "import"
> end mouseup 

I think parenthesis are are reserved character in regex, so them may 
need to be escaped with a backslash like: (my regex is a little rusty)

on mouseup
   put field "import" into timport
   put replacetext(timport,"\(.*\)"," ") into field "import"
end mouseup




More information about the use-livecode mailing list