saving regexes