I need to check the web address, using regular expression.
if user type url as
This is a pretty basic expression for testing domain names:
@^(http\:\/\/|https\:\/\/)?([a-z0-9][a-z0-9\-]*\.)+[a-z0-9][a-z0-9\-]*$@i
Should match:
domain.com www.domain.com http://domain.com https://domain.com