I have a line of text like this:
<tab>some text<tab>some more text<tab>**o*ne||two||three<tab>more text<tab>r*ed||green||blue
I want to find the indexes at the bolded o and r.
My attempt would be if possible:
pattern = @"(?<=\t.*)\|\|"
foreach (Match match in Regex.Matches(text, pattern)
Console.WriteLine("Found '{0}' at position {1}", match.Value, match.Index);
Even better would be to match the entire contents of the fields:
one||two||three and red||green||blue
Thanks for your assistance