Re: Regular Expressions in IDE

2016-10-26 Thread Peter Haworth
Try Thierry Douez's Regex library. On Wed, Oct 26, 2016 at 10:38 AM Dr. Hawkins wrote: > On Wed, Oct 26, 2016 at 9:39 AM, Peter Reid wrote: > > > Does anyone know where I can get guidance notes for the regular > expression > > find & replace in the IDE script editor. In particular, what is the

Re: Regular Expressions in IDE

2016-10-26 Thread dunbarx
Simply wait til Mr. Thierry sees this. Does he follow this list? If not, post to the forum. Craig Newman -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Regular-Expressions-in-IDE-tp4709804p4709806.html Sent from the Revolution - User mailing list archive at

Re: Regular Expressions in IDE

2016-10-26 Thread Dr. Hawkins
On Wed, Oct 26, 2016 at 9:39 AM, Peter Reid wrote: > Does anyone know where I can get guidance notes for the regular expression > find & replace in the IDE script editor. In particular, what is the syntax > for using remembered groups in the replacement string. There is only a subset of what w

Regular Expressions in IDE

2016-10-26 Thread Peter Reid
Hi Does anyone know where I can get guidance notes for the regular expression find & replace in the IDE script editor. In particular, what is the syntax for using remembered groups in the replacement string. For example, I was trying the following: Find: "([a-zA-Z]+)_([a-zA-z]+)"

Re: Regular expressions

2013-10-09 Thread Thierry Douez
Hi Terry, I guess you may like to participate in this thread: http://forums.runrev.com/viewtopic.php?f=66&t=17412 Regards, Thierry - 2013/7/2 Terry Vogelaar stringToChange: Block of text matchExpression: [^<]+ replacementStri

Re: Regular expressions

2013-07-04 Thread Geoff Canyon
I like general utility functions like this. I've written this one myself somewhere in the past. When we can tinker with the language this will definitely be in my lexicon. On Thu, Jul 4, 2013 at 10:08 AM, Peter M. Brigham wrote: > > function offsets str,container,includeOverlaps > _

Re: Regular expressions

2013-07-04 Thread Peter M. Brigham
On Jul 2, 2013, at 1:13 PM, Terry Vogelaar wrote: > However, I need to do some thinking how I can turn this into a > search-and-replace-all style action. I probably need to write a loop where I > use offset to find the first "", then use > matchChunk to see if it matches and to put things in va

Re: Regular expressions

2013-07-02 Thread J. Landman Gay
On 7/2/13 12:13 PM, Terry Vogelaar wrote: Hi Jan, This sure is helpful. However, I need to do some thinking how I can turn this into a search-and-replace-all style action. I probably need to write a loop where I use offset to find the first "", then use matchChunk to see if it matches and to pu

Re: Regular expressions

2013-07-02 Thread Terry Vogelaar
ary for LiveCode > www.quartam.com > > > = > "As we grow older, we grow both wiser and more foolish at the same time." > (La Rochefoucauld) > > > - Original Message - >> From: Terry Vogelaar >> To: How to use LiveCode >> Cc: >>

Re: Regular expressions

2013-07-02 Thread Jan Schenkel
am Reports & PDF Library for LiveCode www.quartam.com = "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) - Original Message - > From: Terry Vogelaar > To: How to use LiveCode > Cc: > Sent: Tuesday, July 2, 2013

Regular expressions

2013-07-02 Thread Terry Vogelaar
GREP saved my bacon in several occasions. And the regular expressions in LC are somewhat similar to GREP, but not quite. In GREP I can do this: stringToChange: Block of text matchExpression: [^<]+ replacementString: ? result: Block of text The question-mark fills in everything that matches