matchText question

Peter Haworth pete at lcsql.com
Wed Feb 25 18:02:49 EST 2015


You can even include comments preceded by "#" if use (?x) as a mode
modifier at the start of the regex.

On Wed Feb 25 2015 at 2:53:43 PM Mike Bonner <bonnmike at gmail.com> wrote:

> Yes, it was to me too. Though, I did end up breaking it down into singles
> and they all behaved the same, which made it easier to take a WAG.  Less
> wild than it would have otherwise been. Find the thing that's the same for
> each part, and decide if its broke.
>
> On Wed, Feb 25, 2015 at 2:50 PM, stephen barncard <
> stephenREVOLUTION2 at barncard.com> wrote:
>
> > On Wed, Feb 25, 2015 at 12:29 PM, Mike Bonner <bonnmike at gmail.com>
> wrote:
> >
> > > Try this instead..
> > >     put "(?i)^\s*(\-\-\s+begin)\s+(\w+).*+|" & \
> > >          "^\s*(on)\s+(\w+).*+|" & \
> > >          "^\s*(function)\s+(\w+).*+|" & \
> > >          "^\s*(command)\s+(\w+).*+|" & \
> > >          "^\s*(private\s+function)\s+(\w+).*+|" & \
> > >          "^\s*(private\s+command)\s+(\w+).*+|" & \
> > >          "^\s*(\/\*\s+include).*+|" &  \
> > >           "^\s*(\*\/).*+" \
> > >          into expr
> > >
> >
> > breaking down and displaying complex REGEX this way is very helpful.
> >
> > *--*
> > *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words*
> > _______________________________________________
> > 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