Meinhoonaa
asked on
how to extract characters pass pipe delimeted string
My input string = ABCD|EFGH.
How do I retrieve values 'EFGH' from the input string past pipe delimeted.
How do I retrieve values 'EFGH' from the input string past pipe delimeted.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Another approach might be to use LastIndexOf method which returns the last occurrence of a string or characters within the string.
string str = "ABCD|EFGH";
var stringResult = str.Substring(str.LastIndexOf('|') + 1);
Open in new window