i need a url regex which validates the url string without http://www. or https://www.
any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It would probably be a good idea to keep the
www‘s intact in order to preserve the sub-domain. A regex pattern like this:^([a-zA-Z0-9]+(\.[a-zA-Z0-9]+)+.*)$would match a URL that is not prefixed by a protocol (
http://,https://,ftp://,etc).