I prefer to move this regex to the top of the file as a constant...

it should have a more specific name like: source_archive_name_re ... here is ok to use _re suffix in variables :)