Regular Expressions 101

Community Patterns

Community Library Entry

-1

Regular Expression
Python

r"
(\s*-en)$|(\s*-en-us)$|(\s*-us)$
"

Description

Capture alternative items matching end of lines country codes

Submitted by Branden - 10 years ago