private String ExtractName(String fullName) { String ret = fullName; Match m = Regex.Match(fullName, @"\[\w+\](\w+)"); if (m.Success) { ret = m.Groups[1].Value; } return ret; }