I am trying to create a regular expression for a Google Forms field. The goal is to only allow users to enter a URL in a very specific format:
- No "http://" or "www." in front
- No trailing slashes
- Only lowercase characters
Examples
- http://example.com - FALSE
- example.com/ - FALSE
- Example.com - FALSE
- example.com - TRUE
What I achieved so far is the first two criteria, but how can I force only lower case characters?
([\da-z\.-]+)\.([a-z\.]{2,6})
Thanks a lot!