%bXY
matches a sequence of characters that starts with X
and ends with Y
. Thus, %b{}
matches {......}
for any characters between curly braces.
The general pattern in your example code first matches a character $
, followed by {
any number of characters, and then }
.
Amber
source
share