regex to parse code from snapshot filename