move the snippet regex into the settings file and make it user-configurable