I am new to JavaScript
i need a regular expression which
allows both of this forms
for example :
var url_pattern = new RegExp("((ftp|http|https)(://))?([a-zA-Z0-9]+[.]{1}){2}[a-zA-z0-9]+(/{1}[a-zA-Z0-9]+)*/?", "i"); return url_pattern.test(url);
2.1m questions
2.1m answers
60 comments
57.0k users