Updated regex to conform to bagit spec