/ Published in: JavaScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function checkURL(url) { var str=url; var filter=/www\.[A-Za-z0-9\.-]{3,}\.[A-Za-z]{3}/; if (filter.test(str)) return true; else return false; }
Comments
