Regular Expressions 101

Community Patterns

string between two underscores

1

Regular Expression
Python

r"
[^P_]\w+(?=_)
"

Description

this simple regexp will find a string between two undercores

Submitted by slprag - 8 years ago