Regular Expressions 101

Community Patterns

Regex to match sentences that sound like yelling

0

Regular Expression
Python

r"
(.*(!)$)|([^a-z])+(\?)$
"

Description

Bob answers 'Whoa, chill out!' if you yell at him. You can use this regex to match regexes like "WHAT THE HELL WERE YOU THINKING?"

Submitted by Chaiwa Berian - 9 years ago