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);
1.4m articles
1.4m replys
5 comments
57.0k users