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
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
Here’s one I have used which seems to work nicely:
constant kURLRegex =
"^(?:(?:(([^:\/#\?]+:)?(?:(?:\/\/)(?:(?:(?:([^:@\/#\?]+)(?:\:([^:@\/#\?]*))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((?:\/?(?:[^\/\?#]+\/+)*)(?:[^\?#]*)))?(\?[^#]+)?)(#.*)?"
local tOrigin, tScheme
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\-\._~:/?#[\]@!\$&'\(\)
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
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
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
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