Prevent code embedded in a regex from running