Posted By

erraja_07 on 03/18/11


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

notturnale


JQuery URl Validation


 / Published in: JavaScript
 

  1. function checkURL(url)
  2. {
  3. var str=url;
  4. var filter=/www\.[A-Za-z0-9\.-]{3,}\.[A-Za-z]{3}/;
  5. if (filter.test(str))
  6. return true;
  7. else
  8. return false;
  9. }

Report this snippet  

You need to login to post a comment.