/ /gi

Use $1, $2… for groups, $& for full match, $$ for literal $