I've been trying to find out what this code means but I haven't had any luck even finding out where to start or what to look up.
if(!/^(https?):\/\//i.test(value))
I understand some of it so I've got the following questions.
- what does the "/^" do?
- what does the ? do?
- what do the "(" and ")" do around the https
- what does the ":" do?
- what does the "i" do?
If this appears to be a question without research, any guidance where to start would be great.