Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
2.25/5 (4 votes)
See more:
I am not able to user string.replace in following string

I want to remove all escape sequnce charater final string will be like this
"The following term sheet is subject to the Final Terms pursuant to the Issuer s programme.Capitalized terms used and not otherwise defined herein shall have the meanings given to them in the Final Terms. In the event of any inconsistency between this term sheet and the Final Terms, the Final Terms shall govern.
If there is any discrepancy in this term sheet between the Investment Objectives, Product Description, Notes Economics and the Scenario Analysis, the Notes Economics shall apply.

need your help.

string strinput = @"\pard \qj \li187\ri153\sb40\sa120\widctlpar\tqc\tx5400\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin153\lin187\itap0 {\fs18 The following term sheet is subject to the Final Terms pursuant to the Issuer
\rquote s programme.}{\fs18 }{\fs18 Capitalized terms used and not otherwise defined herein shall have the meanings given to them in the Final Terms. In the event of any inconsist
ency between this term sheet and the Final Terms, the Final Terms shall govern.}{\fs18
If there is any discrepancy in this term sheet between the Investment Objectives, Product Description, Notes Economics and the Scenario Analysis, the Notes Economics shall apply.}{\b\fs18
";
strinput.Replace("\pard","");
strinput.Replace("\qj","");


Please help me removing escape sequence character.
Posted

1 solution

Try strinput.Replace(@"\\", @"\");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900