How can we extract substring of the string by position and separator.

Posted by Harikrishna on Stack Overflow See other posts from Stack Overflow or by Harikrishna
Published on 2010-04-07T09:06:04Z Indexed on 2010/04/07 11:23 UTC
Read the original article Hit count: 194

Filed under:
|
|
|

How can we divide the substring from the string

Like I have string

String mainString="///Trade Time///Trade Number///Amount Rs.///";

Now I have other string

String subString="Amount"

Then I want to extract the substring Amount Rs. with the help of second string named subString not by any other method But it should be extracted through two parameters like first is I have index no of Amount string and second is until the next string ///.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET