replaceText problem

Mike Bonner bonnmike at gmail.com
Tue Jan 6 22:39:56 EST 2015


Yeah, the regexbuilder is one of the plugins.  Didn't know you could start
the builder from find, will have to poke around.
It would be very cool if someone (he says whistling nonchalantly and
looking at the floor) updated the regex builder.

On Tue, Jan 6, 2015 at 8:34 PM, Peter Haworth <pete at lcsql.com> wrote:

> Hi Mike,
> That's one of RunRev's plugins, right? Sounds like a ripe candidate to be
> updated by some kind person :-)
>
> Interestingly I was prowling around the code for the Script Editor Find
> function a couple of days ago, the one you get when you click the more
> button, and came across a button that invokes regexbuilder but either the
> button is off screen or hidden because I can't see it anywhere even if I
> expand the Find options and select wildcard.
>
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
>
> On Tue, Jan 6, 2015 at 7:17 PM, Mike Bonner <bonnmike at gmail.com> wrote:
>
> > Ah k. My mistake again, works with the simplified old filter, not the
> > current full regex filter.
> >
> > On Tue, Jan 6, 2015 at 8:16 PM, Mike Bonner <bonnmike at gmail.com> wrote:
> >
> > > My mistake. Works with filter too. :)
> > >
> > > On Tue, Jan 6, 2015 at 8:13 PM, Mike Bonner <bonnmike at gmail.com>
> wrote:
> > >
> > >> The regex builder thats part of LC is pretty good for immediate
> feedback
> > >> too, and has the benefit that it can place (hopefull working) code
> into
> > the
> > >> clipboard for pasting into script, after choosing matchtext or
> > matchchunk.
> > >> (still helpful for figuring out the regex for filter, though no
> > >> autogenerated code)  All you have to do after pasting is specify the
> > >> container of text to check.  It is limited i'm sure, but is still
> pretty
> > >> darn helpful.
> > >>
> > >> On Tue, Jan 6, 2015 at 7:05 PM, Kay C Lan <lan.kc.macmail at gmail.com>
> > >> wrote:
> > >>
> > >>> On Wed, Jan 7, 2015 at 12:44 AM, Bob Sneidar <
> > >>> bobsneidar at iotecdigital.com>
> > >>> wrote:
> > >>>
> > >>> > I read up on this, thinking that LC was implementing some
> substandard
> > >>> > regex functionality. Turns out this is the state of affairs in the
> > >>> regex
> > >>> > world.
> > >>> >
> > >>> > I don't know where Pete was reading that certain regex characters
> are
> > >>> not
> > >>> supported, and whilst I agree the Dictionary is very scarce with
> regex
> > >>> examples in the entry for matchText it states that LC uses the PCRE
> > >>> implementation of regex. Yes there are different flavours of regex
> > which
> > >>> is
> > >>> why I like this online regex tester:
> > >>>
> > >>> https://regex101.com/#pcre
> > >>>
> > >>> It allows you to select the flavour of regex you want to use; too
> many
> > of
> > >>> the other online regex testers are JavaScript based or Python.
> > >>>
> > >>> This site has a load of example (if you click on the Community tab at
> > the
> > >>> top) so in many cases you don't even have to write any regex as
> someone
> > >>> has
> > >>> already written it for you. It's also nice that if you do write the
> > regex
> > >>> yourself (or click on one of the examples) the Explanation box at top
> > >>> right
> > >>> automatically fills with an explanation of what it's doing - which
> may
> > or
> > >>> may not match what you're trying to achieve ;-)
> > >>>
> > >>> But best of all, unlike writing regex in LC which gives you no
> feedback
> > >>> at
> > >>> all about your syntax, by using the online test you are given
> immediate
> > >>> feedback, i.e. if you enter the regex Pete listed in his original
> post
> > >>> the
> > >>> online tester immediately highlights the opening bracket in red - and
> > in
> > >>> the Explanation box it tells you that it's missing it's closing
> > bracket.
> > >>> Easy.
> > >>>
> > >>> If it works on this website it will work in LC.
> > >>> _______________________________________________
> > >>> use-livecode mailing list
> > >>> use-livecode at lists.runrev.com
> > >>> Please visit this url to subscribe, unsubscribe and manage your
> > >>> subscription preferences:
> > >>> http://lists.runrev.com/mailman/listinfo/use-livecode
> > >>>
> > >>
> > >>
> > >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list