Regular Expressions 101

Community Patterns

Match a shell-style parameter expansion introduced with a dollar sign and enclosed in culry braces.

0

Regular Expression
PCRE2 (PHP >=7.3)

/
\$\{[A-Z0-9_][^ :\#\<%\/\$\{\}]+\}
/

Description

Matches a shell-style (bash, sh, zsh, etc.) parameter expansion reference.

Submitted by anonymous - a year ago