I have a line that looks like this: "FirstName||Sam LastName||Jones Address||123 Main ST ..." (100 other values)
I want to find only Sam and Jones from the whole line.
so the string firstname = originalstring.substring ... etc.
Does anyone know how I can do this?
OPTIONAL - I think I forgot to mention a couple of things.
FirstName||Sam\r\n MiddleName||\r\n LastName||Jones\r\n ....
So, if I count the number of characters that will not help me, the reason may be more elements except just the name and the name.
refer source share