Set base name after pattern matching.