Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript regex url

If you require HTTP/HTTPS protocol: 

/https?://(www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}([-a-zA-Z0-9()@:%_+.~#?&//=]*)/
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #regex #url
ADD COMMENT
Topic
Name
6+8 =