Good evening,
I'm trying to regulate input on a Google Form. Since Google Forms allows me to input Regular Expressions for data validations, I've grudgingly began writing some.
What I want:
- I want my input Stringto be lower or equal to140characters in length. Easy enough, with the RegExp:^.{1,140}$
- I want the input Stringto not contain the wordscat,dogandcardiologist. So I've written a RegExp for it, using Negative lookahead:^(?=^(?:(?!cat|dog|cardiologist).)*$).*$
- But what if I want my Stringto BOTH be lower than 140 characters, and not containcat,dogandcardiologist? How do I combine these two Regular Expressions using the equivalent of AND between the two?
Any help would be extremely appreciated. I've been trying for hours, but Regular Expressions hurt my brain.
 
    