Find matches and apply replacements with capture groups, named groups & backreferences
$1โ$9 capture groups ยท $& full match ยท $` before match ยท $' after match ยท $$ literal $
$1
$9
$&
$`
$'
$$