Re: LCB: Error: illegal escape in string

2016-02-24 Thread Stephen MacLean
> On Feb 24, 2016, at 10:41 AM, Peter TB Brett wrote: > > On 24/02/2016 12:26, Stephen MacLean wrote: >>> Hi Stephen, >>> >>> In LiveCode Builder, quoted strings treat the '\' character as an escape >>> character. It's explained in the LiveCode Builder Language Reference guide. >>> >>> So, y

Re: LCB: Error: illegal escape in string

2016-02-24 Thread Peter TB Brett
On 24/02/2016 12:26, Stephen MacLean wrote: Hi Stephen, In LiveCode Builder, quoted strings treat the '\' character as an escape character. It's explained in the LiveCode Builder Language Reference guide. So, you need to replace your '\' with '\\', and everything should work nicely for you.

Re: LCB: Error: illegal escape in string

2016-02-24 Thread Stephen MacLean
> On Feb 24, 2016, at 3:08 AM, Peter TB Brett wrote: > > On 23/02/2016 21:59, 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,

Re: LCB: Error: illegal escape in string

2016-02-24 Thread Peter TB Brett
On 23/02/2016 21:59, 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._%+-]{

Re: LCB: Error: illegal escape in string

2016-02-23 Thread Peter Haworth
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 wrote: > Hi Phil, > > Thanks for responding, I’m not one either and it works fin

Re: LCB: Error: illegal escape in string

2016-02-23 Thread Stephen MacLean
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 quo

Re: LCB: Error: illegal escape in string

2016-02-23 Thread Phil Davis
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 a