I need to write a JavaScript RegEx that matches in partial strings of an URL.
Example: Every partial match for "www.url.com/foo"
www.url.com/foo/bar/send/123 - true
www.url.com/foo/doe/get/123 - true
www.url.co/foo/doe/get/123 - false
http://www.url.com/foo/get/123 - true
http://www.url.co/foo/doe/123 - false
How can I do an regex that uses slashs in string?