G
Guest
Supposing I have a string containing fields delimited by | (pipe) such as:
this|is|a|string|delimited|by|pipes
If I wanted to get the portion of the string between the 3rd and 4th pipe,
I would have to start at the beginning of the entire string and inspect each
character to see if it is a pipe. Once I found the 3rd pipe, I could begin
parsing the string until a 4th pipe is discovered.
Is there a simpler and more elegant way to do this? There must be...
Thanks,
Mark
this|is|a|string|delimited|by|pipes
If I wanted to get the portion of the string between the 3rd and 4th pipe,
I would have to start at the beginning of the entire string and inspect each
character to see if it is a pipe. Once I found the 3rd pipe, I could begin
parsing the string until a 4th pipe is discovered.
Is there a simpler and more elegant way to do this? There must be...
Thanks,
Mark