Regular Expressions 101

Library entries

Fetch "text A (text B)" or "text A (text B (text C))"

Vote

1

Regular Expression
pcre2

/
(\b[^()]+\b)\s*\(\s*(\b[^()]+\b)\s*\)
/
gm

Description

Loading markdown...
Submitted by anonymous - 2 months ago