Wanted to fetch specific value from string

Hi ,
Currently i am working on a string where i am fetching highlighted value in the image
image
for that i have written Split(strPayMethod.ToString,"-")(1) but as in the above image If (-) more than one hypen will come then need to write other logic…

Thanks in Advance…
cheers…

Please, try

strPayMethod.ToString.Split("-"c).Last.Trim

@ Sergey Thanks for Providing solution…

Happy Automation :slight_smile:

Cheers …

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.