Regexes and inplace edit