Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-05-13 01:48
Flavor·ECMAScript (JavaScript)

/
[^\\](?:(?:\\{2})*)\$(?:(?:[=|-]?([A-Z0-9_]*[A-Z_]+[A-Z0-9_]*)|(?:{[=|-]?([A-Z0-9_]*[A-Z_]+[A-Z0-9_]*)})))
/
g
Open regex in editor

Description

Allows the capture of environment variables for expansion or elimination.

Submitted by Everton Ribeiro <nuxlli@gmail.com>