I'm trying to match a string that starts with either http:// or /.
This will pass...
http://www.google.com
/the/path/home.aspx
I'm pretty sure this will match http but I can't figure out how to fit in the optional /
/^(https?:\/\/)/i
I'm trying to match a string that starts with either http:// or /.
This will pass...
http://www.google.com
/the/path/home.aspx
I'm pretty sure this will match http but I can't figure out how to fit in the optional /
/^(https?:\/\/)/i