Fix meta character escaping for regex.