using System.Text.RegularExpressions;
public static void Main()
string searchString = @"/ЭДПФР[1]/СЗВ-ТД[2]/ЗЛ[3]/ТрудоваяДеятельность[4]/МероприятиеОтменяемое[5]";
string theA = string.Empty;
string theB = string.Empty;
string theC = string.Empty;
string pattern = @"\[(?<A>\w+)\].+\s*\[(?<B>\w+)\].+\s*\[(?<C>\w+)\].+\s*\[(?<D>\w+)\].+\s*\[(?<E>\w+)\]";
Regex rx = new Regex(pattern);
Match m = rx.Match(searchString);
theA = m.Groups["A"].Value;
theB = m.Groups["B"].Value;
theC = m.Groups["X"].Value;