fix escape regex
credits