I have a list of urls starting with:
http://www.example.com
http://www.example.com/https://www.example.com
http://www.exampleTwo.com
I want to use regex to get all the urls starting from
http://www.example.com
This is what I have so far
var url = (' http://www.example.com');
var expression = /^http?:\/\/example\.com/\;
if (url != expression) {
alert ("success");
}
Any one can shed a light on this please?