Regular Expressions 101

Community Patterns

Your search did not match anything

Community Library Entry

1

Regular Expression
Python

r"
([A-Z0-9_]+)(\=)(.*\n(?=[A-Z])|.*$)
"
gm

Description

Hunts for the key and value in environment variables separated by newlines. _ All keys must be uppercase _

Submitted by anonymous - 5 years ago