LCB: Error: illegal escape in string

Peter Haworth pete at lcsql.com
Tue Feb 23 20:57:27 EST 2016


Doesn't seem like it should be treated as an escape character since it's in
quotes, as you say.  I'd enter a QCC report about it and see what the LCB
team have to say.

On Tue, Feb 23, 2016 at 5:55 PM Stephen MacLean <smaclean at madmansoft.com>
wrote:

> Hi Phil,
>
> Thanks for responding, I’m not one either and it works fine with no issues
> when run directly in LC.
>
> Removing the “\” does cure the error, but of course doesn’t work any more.
>
> So the question I guess is two fold: 1) Why is that considered an escape
> character when it is enclosed in quotes and 2) How do you escape it?
>
> Sorry, trying to learn LCB. Documentation is hard to find, at least for
> me. The dictionary for LCB is very light at the moment.
>
> Thanks,
>
> Steve MacLean
>
> > On Feb 23, 2016, at 6:25 PM, Phil Davis <revdev at pdslabs.net> wrote:
> >
> > I'm not much of a regex guy, but what happens if you remove the
> backslash after {1,63} ?  I assume something will probably stop working,
> but that's the only \ in the string.
> >
> > Phil Davis
> >
> >
> >
> > On 2/23/16 1:59 PM, Stephen MacLean wrote:
> >> Hi All,
> >>
> >> Working to build a library extension and I’m getting an error on this
> line when I go to test it in LCB:
> >>
> >> put "^[A-Z0-9._%+-]{1,64}@(?:[A-Z0-9-]{1,63}\.){1,125}[A-Z]{2,63}$"
> into tRegex
> >>
> >> The error is:
> >>
> >> illegal escape in string '^[A-Z0-9._%+-]{1,64}@
> (?:[A-Z0-9-]{1,63}\.){1,125}[A-Z]{2,63}$’
> >>
> >> Any ideas?
> >>
> >> Thanks,
> >>
> >> Steve MacLean
> >>
> >> _______________________________________________
> >> 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
> >
> > --
> > Phil Davis
> >
> >
> > _______________________________________________
> > 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