Here we limit the input to 140 characters much like Twitter. Word Limit – If you would like to limit the number of words that a user can type in the input field of a Google Form, there’s a regex for that as well.
Many times, I have seen developers write code for validating entries and they write very many if blocks or worse combine them with numerous switch cases.
The learning curve for Regular expression may not be very easy for everyone.
The other regex matches You Tube URL including those using the domains.6.
Character Limit – the default text box in a Google form allows users to input any number of characters but you can impose a limit with the help of regular expression.
Postal Address – allow only alphanumeric characters, spaces and few other characters like comma, period and hash symbol in the form input field.5.
URL (Web domain) – this is useful for fields that require the user to enter their website address and it even matches the upcoming TLDs like .directory or .restaurant.
A regular expression may appear gibberish but they aren’t so difficult to read and understand if you can know the basic rules of the language.