Regular Expressions 101

Community Patterns

Non-"ness" remover

0

Regular Expression
Python

r"
^ *\"(\w(?!ness))*\".*$
"
gm

Description

Remove all words that don't end in "ness" from a dictionary.

Submitted by anonymous - 3 years ago