I am having a little bit of regex trouble.
I am trying to get the path in this url videoplay.
videoplay
http://video.google.co.uk:80/videoplay?docid=-
var subject = ''; var re=/\"[a-z]+:\/\/[^ ]+"/m; document.write(subject.match(re));
You can try this
/\"[a-z]+:\/\/[^ ]+/
Usage
if (/\"[a-z]+:\/\/[^ ]+/m.test(subject)) { // Successful match } else { // Match attempt failed }