I’m trying to take a string like this:
.block\.customcategory\.image\.link
… or
#block\.customcategory\.image\.link
and strip the leading dot/pound and all subsequent backslashes:
block.customcategory.image.link
I can get only as far as /^[\.#]/gm
Leading dot/pound:
Backslash:
Leading dot/pound or backslash: