Re: regex url validator?

2018-10-22 Thread Mark Wieder via use-livecode
On 10/22/2018 07:37 PM, Monte Goulding via use-livecode wrote: Here’s one I have used which seems to work nicely: Interesting regex, but always returns true no matter what I throw at it. Seems that if *any* of the variables are filled (e.g. tPath) then the matchtext function returns true, so

Re: regex url validator?

2018-10-22 Thread J. Landman Gay via use-livecode
You shouldn't let your cat walk on the keyboard like that. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 22, 2018 9:40:09 PM Monte Goulding via use-livecode wrote: Here’s one I have used which seems to work nicely: consta

Re: regex url validator?

2018-10-22 Thread Monte Goulding via use-livecode
Here’s one I have used which seems to work nicely: constant kURLRegex = "^(?:(?:(([^:\/#\?]+:)?(?:(?:\/\/)(?:(?:(?:([^:@\/#\?]+)(?:\:([^:@\/#\?]*))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((?:\/?(?:[^\/\?#]+\/+)*)(?:[^\?#]*)))?(\?[^#]+)?)(#.*)?" local tOrigin, tScheme

regex url validator?

2018-10-22 Thread Tom Glod via use-livecode
Hi peeps, I'm trying to use regex to validate a list of URLs I've tried 4 or 5 different "regular" expressions that supposedly work . but LC does not give me anything back. None of them work, Like for example ... this one. ^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)

RE: jsonImport or JSONToArray

2018-10-22 Thread Douglas Ruisaard via use-livecode
I've solved my issue using Matthias's "tip", I searched further into the available inclusions and found Monte's excellent mergJSON (I had opted out looking further once I found and checked the "JSON Libray" inclusion)... which has its own JsonToArray function. Including mergeJSON manually g

Re: jsonImport or JSONToArray

2018-10-22 Thread Douglas Ruisaard via use-livecode
Thanks for the reply, Matthias. Yes... I forgot to include the fact that I also tested BOTH with the "default" setting for Inclusions (LC finds them) and selecting the JSON library, manually. I've tried to keep the demonstration code simple, so I only tried to "include" the "JSON Library" (but

GitHub has issues

2018-10-22 Thread panagiotis merakos via use-livecode
Hello folks, GitHub has several issues today. You can see all the status updates here: https://status.github.com/messages This has resulted in several problems for us today, for example the newsletter (This Week in LiveCode) does not appear in the expected place, some PRs disappear and reappear l

Re: Widget imageWidget_v110

2018-10-22 Thread Lagi Pittas via use-livecode
Hi I'm Honoured Herman, and I was going to donate my self even though I have as yet no need for the Widget - but I have donated many times before when I think someone has done something that has to be acknowledged in some way. To be honest I was thinking of getting a gofundme type of theme and use