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
String
to be lower or equal to140
characters in length. Easy enough, with the RegExp:^.{1,140}$
- I want the input
String
to not contain the wordscat
,dog
andcardiologist
. So I've written a RegExp for it, using Negative lookahead:^(?=^(?:(?!cat|dog|cardiologist).)*$).*$
- But what if I want my
String
to BOTH be lower than 140 characters, and not containcat
,dog
andcardiologist
? 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.