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
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
> 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
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
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
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
--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)
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
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