I have a file containing rows with pipe (|
) in column delimiter, I want to find the infomation between the 99th and 100th delimiters.
The row has been read into my string variable such as string str = @"1|2|a|||....|||abc|d|...."
and I want to find and store the abc
value in my another variable.
is there any neat way, such as using Regex, to make the solution work? It seems too stupid to loop 100 times using something like substring
.