I want to match a web address through regex which should capture http://www.google.com as well as http://www.google.com i.e. with and without protocol.
I want to match a web address through regex which should capture http://www.google.com as
Share
Well it’s going to depend on exactly what you want to capture (‘FTP’? ‘/index.htm’?) because a general URI capture based on the RFC standard is very hard, but you could start with:
Complicated see?