Regular Expressions 101

Community Patterns

Community Library Entry

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