I am having less knowledge in js
here is a code :
var v = new RegExp();
v.compile(“[1]+://[A-Za-z0-9-]+\\.[A-Za-z0-9-%&\?\/.=]+$”);
It validates url
but I want to validate only rapidshare.com links
plz help
A-Za-z ↩︎
I am having less knowledge in js
here is a code :
var v = new RegExp();
v.compile(“[1]+://[A-Za-z0-9-]+\\.[A-Za-z0-9-%&\?\/.=]+$”);
It validates url
but I want to validate only rapidshare.com links
plz help
A-Za-z ↩︎
Welcome to the forums.
You simply need to make the REGEX match rapidshare:
^http://(www\\.)?rapidshare.com/files/.+$
The group 0 will match the whole request. “www.” is optional.