Example:
string currentText = "~124|NSCREMBEN260901|E|PDDTS00000713398 HSBC0100000|METROPOLITAN BANK AND TRUST|COMPANY|/5010494003 USD 7,826,413.65";
the target format is in "|E|" and I want an output like " |E|". My current expression use was this Regex rgx = new Regex(@"(?<=\|[a-zA-Z0-9]\|)"); but the out put was incorrect the space was happen after the formatted text "|E| ". Please help me in this logic as I am not mastered using regular expression. Thank you so much
Current output(but it is not correct)
~124|NSCREMBEN260901|E| PDDTS00000713398 HSBC0100000|METROPOLITAN BANK AND TRUST|COMPANY|/5010494003 USD 7,826,413.65";
I need output like this:
~124|NSCREMBEN260901 |E|PDDTS00000713398 HSBC0100000|METROPOLITAN BANK AND TRUST|COMPANY|/5010494003 USD 7,826,413.65";
~124|NSCREMBEN260901 |E|PDDTS00000713398 HSBC0100000|METROPOLITAN BANK AND TRUST|COMPANY|/5010494003 USD 7,826,413.65";

Bryian TanPosted Feb 15, 2017, 12:35 AM
mary jean ligasPosted Feb 15, 2017, 12:38 AM
mary jean ligasPosted Feb 14, 2017, 11:49 PM
here is the other sample:
~125|NSCREMBEN159876|9|PDDTS00000754987 HSBC0100000|METROPOLITAN BANK AND TRUST|COMPANY|/5010494003 USD 7,000,000.00
~125|NSCREMBEN159876 |9|PDDTS00000754987 HSBC0100000|METROPOLITAN BANK AND TRUST|COMPANY|/5010494003 USD 7,000,000.00
Bryian TanPosted Feb 14, 2017, 11:45 PM
mary jean ligasPosted Feb 14, 2017, 11:39 PM
Hi Sir Bryian,
Amit KumarPosted Feb 14, 2017, 11:31 PM
Bryian TanPosted Feb 14, 2017, 10:11 PM