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 TanRank #396 · 6.3K reputationPosted Feb 14, 2017, 7:35 PM EST
Amit KumarRank #459 · 5.4K reputationPosted Feb 14, 2017, 6:31 PM EST
mary jean ligasRank #3,676 · 400 reputationPosted Feb 14, 2017, 6:49 PM EST
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 TanRank #396 · 6.3K reputationPosted Feb 14, 2017, 5:11 PM EST
mary jean ligasRank #3,676 · 400 reputationPosted Feb 14, 2017, 6:39 PM EST
Hi Sir Bryian,
Bryian TanRank #396 · 6.3K reputationPosted Feb 14, 2017, 6:45 PM EST
mary jean ligasRank #3,676 · 400 reputationPosted Feb 14, 2017, 7:38 PM EST