All,
I am new to REGEX world...
I know that there are lot of regex avail for validating the common URL with http in it.
But I am looking for a regex to validate the URL in the following formats(without HTTP/HTTPS):
- www.example.com/user/login
- www.example.com
- www.exmaple.co.xx
- www.example.com/user?id=234&name=fname
in case if the URL contains only,
- www.example(without the domain - .com OR .co.xx)
- example.com (without "www")
I should throw an error to the user.
any help would be highly appreciated...
Thanks Raj