regex file update