Re: How to escape wildcard chars - and find the offset of a '?' in a URL?

2021-03-14 Thread BT via use-livecode
Solved! Thanks for responding & testing this Håkan. I'm glad to hear that the ‘?’ is a regular character in this context and it’s the usual 'pilot error’! Tracing backwards I spotted a stray extra quote in the line defining tURL, which wasn’t rejected on save. I’ll be glad when I can get back

Re: How to escape wildcard chars - and find the offset of a '?' in a URL?

2021-03-14 Thread Mark Wieder via use-livecode
On 3/14/21 9:27 AM, BT via use-livecode wrote: Hi folks, What’s the correct the syntax needed to escape a question mark so that its offset can be found in a URL string? I get zero returned by put offset(“?”, tURL) and put offset( "?\",tURL) and put offset( numToCodepoint(Ux003F),tURL) throws e

Re: How to escape wildcard chars - and find the offset of a '?' in a URL?

2021-03-14 Thread Håkan Liljegren via use-livecode
Hmm, strange! For me it works without problems: put "https://www.mysite.com/?some=parameters&that=folllow"; into tURL put offset("?", tURL) Returns 24 :-Håkan On 14 Mar 2021, 17:29 +0100, BT via use-livecode , wrote: > Hi folks, > What’s the correct the syntax needed to escape a question mark s

How to escape wildcard chars - and find the offset of a '?' in a URL?

2021-03-14 Thread BT via use-livecode
Hi folks, What’s the correct the syntax needed to escape a question mark so that its offset can be found in a URL string? I get zero returned by put offset(“?”, tURL) and put offset( "?\",tURL) and put offset( numToCodepoint(Ux003F),tURL) throws errors. The docs & forums cover escaping quotes b