Re: Wildcard? replaceText, offset?

2020-04-29 Thread Ben Rubinstein via use-livecode
To: How to use LiveCode Cc: doc hawk Sent: Sun, Apr 26, 2020 2:41 pm Subject: Re: Wildcard? replaceText, offset? On Apr 26, 2020, at 11:24 AM, Rick reasoned In the middle-end part of the string I have “(x)” where x represents some integer. it could be (4) or (10) or (5) etc. If you’re cer

Re: Wildcard? replaceText, offset?

2020-04-27 Thread dunbarx--- via use-livecode
You are welcome. Er, my offering IS a one liner. Craig -Original Message- From: Rick Harrison via use-livecode To: How to use LiveCode Cc: Rick Harrison Sent: Mon, Apr 27, 2020 12:20 am Subject: Re: Wildcard? replaceText, offset? Thanks for the suggestions! I was hoping that perhaps

Re: Wildcard? replaceText, offset?

2020-04-26 Thread Thierry Douez via use-livecode
> Le 27 avr. 2020 à 08:37, J. Landman Gay via use-livecode > a écrit : > > On 4/26/20 1:24 PM, Rick Harrison via use-livecode wrote: >> In the middle-end part of the string I have “(x)” where x represents some >> integer. >> it could be (4) or (10) or (5) etc. >> I just want to replace the nu

Re: Wildcard? replaceText, offset?

2020-04-26 Thread J. Landman Gay via use-livecode
On 4/26/20 1:24 PM, Rick Harrison via use-livecode wrote: In the middle-end part of the string I have “(x)” where x represents some integer. it could be (4) or (10) or (5) etc. I just want to replace the number inside the () with whatever other number I need to. If there is only a single ins

Re: Wildcard? replaceText, offset?

2020-04-26 Thread Rick Harrison via use-livecode
Thanks for the suggestions! I was hoping that perhaps there was a very simple one liner or character that would do it for me. I think I have a solution now. Rick > On Apr 26, 2020, at 3:15 PM, dunbarx--- via use-livecode > wrote: > > on mouseUpput offset("(",yourString) into startCharput of

Re: Wildcard? replaceText, offset?

2020-04-26 Thread dunbarx--- via use-livecode
1) of  yourStringend mouseUp Craig -Original Message- From: doc hawk via use-livecode To: How to use LiveCode Cc: doc hawk Sent: Sun, Apr 26, 2020 2:41 pm Subject: Re: Wildcard? replaceText, offset? On Apr 26, 2020, at 11:24 AM, Rick reasoned > In the middle-end part of the stri

Re: Wildcard? replaceText, offset?

2020-04-26 Thread dunbarx--- via use-livecode
--Original Message- From: Rick Harrison via use-livecode To: How to use LiveCode Cc: Rick Harrison Sent: Sun, Apr 26, 2020 2:26 pm Subject: Wildcard? replaceText, offset? I have a very long string. In the middle-end part of the string I have “(x)” where x represents some integer. it could be (4)

Re: Wildcard? replaceText, offset?

2020-04-26 Thread doc hawk via use-livecode
On Apr 26, 2020, at 11:24 AM, Rick reasoned > In the middle-end part of the string I have “(x)” where x represents some > integer. > it could be (4) or (10) or (5) etc. If you’re certain that this is the only, or even the first, integer, a regular expression search and replace or [0-9]+ woul

Wildcard? replaceText, offset?

2020-04-26 Thread Rick Harrison via use-livecode
I have a very long string. In the middle-end part of the string I have “(x)” where x represents some integer. it could be (4) or (10) or (5) etc. I just want to replace the number inside the () with whatever other number I need to. I have been trying to find an easy way to do this. Ideally a