Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

url regex javascript

// If you also need to check for HTTP or HTTPS

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: #url #regex #javascript
ADD COMMENT
Topic
Name
5+4 =