0

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

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!

0 Answers0