#regex validation

6 messages · Page 1 of 1 (latest)

shadow crescent
#

Well, type your regex in regexr, then use the test URL, and you'll see that it only partially matches the text, sicne your pattern doesn't have a $ at the end and doesn't accept slashes in URLs.

modern sundial
#

aah ok, indeed, I need a regex that takes everything. actually regex is wrong mmmmmmm

modern sundial
#

i put a $ at end

#

^(http[s]?://){0,1}(www.){0,1}[a-zA-Z0-9.-]+.[a-zA-Z]{2,5}[.]{0,1}$

#

and --> "no match"

shadow crescent
#

Of course, since your regex still doesn't accept slashes and your URL has slashes.