regex url validator?

Tom Glod tom at makeshyft.com
Mon Oct 22 22:07:09 EDT 2018


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\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$

or this one

/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/

or this one just to make sure

(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)

Does anyone know how to get these or others to work in LC?

Thanks,

Tom



More information about the use-livecode mailing list