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

hakan at exformedia.se hakan at exformedia.se
Sun Mar 14 12:36:21 EDT 2021


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 <use-livecode at lists.runrev.com>, 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 errors.
>
> The docs & forums cover escaping quotes but not wildcard characters.
>
> Thanks in advance for any steer.
> Best,
> Keith
> _______________________________________________
> 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