Link to home
Start Free TrialLog in
Avatar of Jasmin01
Jasmin01Flag for South Africa

asked on

C# Extract word from string

Hi.

I am receiving a response from a web post method that comes in as one long string, eg:

"Data passed successfully - Item 4 |98765|01120| true"

I want to catch the data after the second "|", which in the example will be "01120".  Any ideas on how to do that?
ASKER CERTIFIED SOLUTION
Avatar of Carl Tawn
Carl Tawn
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jasmin01

ASKER

Thanks. This worked great!