I need to parse some text files that have different types of delimiters (tildes, spaces, commas, pipes, caret characters).
There is also a different order of elements depending on what the delimiter is, e.g:
comma: A, B, C, D, E
caret: B, C, A, E, D
tilde: C, A, B, D, E
The delimiter is the same within the file but different from one file to another. From what I can tell, there are no delimiters within the data elements.
What's a good approach to do this in plain ol' Java?