Switch, Case and wild-cards?

Mike Bonner bonnmike at gmail.com
Fri Dec 28 09:50:58 EST 2012


regex IS the purple thing.


On Thu, Dec 27, 2012 at 8:42 PM, Peter Haworth <pete at lcsql.com> wrote:

> You mean regex doesn't make you run around babbling about purple things?!
> On Dec 27, 2012 6:11 PM, "Mark Wieder" <mwieder at ahsoftware.net> wrote:
>
> > Richmond-
> >
> > Thursday, December 27, 2012, 2:26:07 PM, you wrote:
> >
> > > So there I am up to my thighs in a switch statement with a good 500 odd
> > > cases . . .
> >
> > I was going to answer, but Jacque beat me to it.
> >
> > But wait... you've got a switch statement with 500 cases? That in
> > itself would make me run around babbling about purple things. I'd bet
> > there's a simpler (and probably faster - "the text of fld..." has to
> > be evaluated at runtime, not compiled) way to accomplish what you're
> > trying to do. Regex comes to mind, but I don't know what problem
> > you're trying to solve.
> >
> > --
> > -Mark Wieder
> >  mwieder at ahsoftware.net
> >
> >
> > _______________________________________________
> > 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