Regular Expressions 101

Community Patterns

Improvement on Python Print substitution argument matching

1

Regular Expression
Python

r"
(?:(?:{)|(?:%\())([^:\)}]*)(?:(?:(?::.)?})|(?:\).))
"
gm

Description

Loading markdown...
Submitted by Giles Knap - 5 months ago