Re: Replacetext of any characters between parentheses with a space

2021-06-10 Thread Paul Dupuis via use-livecode
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

Re: Replacetext of any characters between parentheses with a space

2021-06-10 Thread Richmond Mathewson via use-livecode
Well, for both their repetitive an tedious lyrics, and their bank-rolling the Christ Brotherhood I can honestly say that I am grateful that most of the Grateful Dead are . . . On Thu, Jun 10, 2021 at 12:12 PM David V Glasgow via use-livecode < use-livecode@lists.runrev.com> wrote: > Ha! Another

Re: Replacetext of any characters between parentheses with a space

2021-06-10 Thread David V Glasgow via use-livecode
Ha! Another way. I couldn’t get the regex to work, despite Paul's invaluable help reminding me that replacetext is a function. My cobbled together solution involved setting itemdel to parentheses then deleting items. As the Grateful Dead rather repetitively put it: So many roads So many

Re: Replacetext of any characters between parentheses with a space

2021-06-10 Thread Richmond Mathewson via use-livecode
Well, at the rsik of getting things wrong, here's my attempt: https://forums.livecode.com/viewtopic.php?f=7=35951 Richmond. On Wed, Jun 9, 2021 at 8:05 PM David V Glasgow via use-livecode < use-livecode@lists.runrev.com> wrote: > LC coders, please tell me why this won’t work! My guess is that

Re: Replacetext of any characters between parentheses with a space

2021-06-09 Thread David V Glasgow via use-livecode
D’Oh! Thanks Paul. Much appreciated. Cheers David G > On 9 Jun 2021, at 6:10 pm, Paul Dupuis via use-livecode > wrote: > > On 6/9/2021 1:03 PM, David V Glasgow via use-livecode wrote: >> on mouseup >> >> put field "import" into timport >> >> replacetext (timport, "(.*)", " ") >>

Re: Replacetext of any characters between parentheses with a space

2021-06-09 Thread Paul Dupuis via use-livecode
On 6/9/2021 1:03 PM, David V Glasgow via use-livecode wrote: on mouseup put field "import" into timport replacetext (timport, "(.*)", " ") put timport into field "import" end mouseup replaceText is a function, not a command, so on mouseup put field "import" into timport put

Replacetext of any characters between parentheses with a space

2021-06-09 Thread David V Glasgow via use-livecode
LC coders, please tell me why this won’t work! My guess is that this is a regex issue, not LC, but I am so stuck. I want to replace all text within in parentheses (including the parentheses) with a single space. I have tried assembling the matchExpression in advance and in line, and also