Can anyone tell the regular expression for URL validation in JavaScript?
I need to validate for http/https://example.com/...
I tried using
((^http/://[a-zA-Z][0-9a-zA-Z+\\-\\.]*:)?/{0,2}[0-9a-zA-Z;/?:@&=+$\\.\\-_!~*'()%]+)?(#[0-9a-zA-Z;/?:@&=+$\\.\\-_!~*'()%]+)?
The examples that i tried to check were:
http://google.com
https://google.com
www.google.com