Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
^SW(TS|L|M)-(\d+)([:,] )([wW][iI][pP])?(?(4)[ \w]{3,}|(?!([wW][iI][pP]))[ \w]{3,}).*$
"
gm

Description

Submitted by alkov - 3 years ago