I\'m trying to set a regexp which will check the start of a string, and if it contains either http:// or https:// it should match it.
http://
https://
How c
Case insensitive:
var re = new RegExp("^(http|https)://", "i"); var str = "My String"; var match = re.test(str);