Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
(?m)^([^A-Za-z0-9]+)([0-9_]+)([A-Za-z]+)([0-9_]+)([^A-Za-z0-9]+)$
"

Description

Using (?m) to match only the wanted line

Submitted by anonymous - 6 years ago