public RawDoc(string name) { var match = Regex.Match(name, @"^(?<prefix>[a-zA-Z]{1,2}):(?<fullName>[^(]*)(\([^)]*\))?"); TargetNamePrefix = match.Groups["prefix"].Value; TargetFullName = match.Groups["fullName"].Value; }