using System.Text.RegularExpressions;
public static void Main()
string s = @"hey|this|is|a|pipe|separated|list|of|stuff|gilbane\kstewart|more|stuff|here";
var match = Regex.Match(s,@"\|[^\\\|]+\\[^\\\|]+\|");
Console.WriteLine(match.Value.TrimStart('|').TrimEnd('|'));