I want to validate a image url that my code will accept the that image url which having http
and https
if there is any other url is present that would not be accepted for example:-
fnc main(){
var url1,url2,url3 string
url1 = "/image.png" // not accepted
url2 = "http://abc/image.jpg" // accepted
url3 = "https://abc/image.jpg" // accepted
}
What regular expression is used for this validation?