Regular Expressions 101

Community Patterns

statement matching

0

Regular Expression
Python

r"
((?:if|for|while)\s+?[^:]*?:\n)|(else\s*?:\n)|(else\s+?if[^:]*?:\n)
"
g

Description

no description available

Submitted by anonymous - 4 years ago