Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2020-08-17 10:16
Flavor·Python

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

Description

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

Submitted by anonymous