Regular Expressions 101

Community Patterns

Extract group of key from hash structure string

1

Regular Expression
PCRE (PHP <7.3)

/
\[:(\w+)\]
/
gm

Description

Extract group of key from hash structure string

Submitted by Prabin Silwal - 3 years ago