regex url validator?
Monte Goulding
monte at appisle.net
Tue Oct 23 06:17:01 EDT 2018
> On 23 Oct 2018, at 5:01 pm, Mark Wieder via use-livecode <use-livecode at lists.runrev.com> 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 as long as anything is in pUrl the string is validated.
Aha… ah yes that regex doesn’t really validate it parses the url. So yeah it’s probably not what is required here.
Cheers
Monte
More information about the use-livecode
mailing list