hi All,
need help for exact text replace like below
String = “C/O KJC #1532,2000 N NEIL ST. UNIT 355”
replace =“N”
new String =“C/O KJC #1532,2000 NEIL ST. UNIT 355”
hi All,
need help for exact text replace like below
String = “C/O KJC #1532,2000 N NEIL ST. UNIT 355”
replace =“N”
new String =“C/O KJC #1532,2000 NEIL ST. UNIT 355”
HI @Ram_Gurav1
Checkout the expression
System.Text.RegularExpressions.Regex.Replace(STring,"\sN\s"," ").Tostring
Regards
Sudharsan
Hey
give a try with
Regex.Replace(strResult, "\bN\b\s+", String.Empty)
Regards
Hello @Ram_Gurav1
You can use the Replace string method
Strings.Replace(YourStr,"N ","")
Regex Expression
System.Text.RegularExpressions.Regex.Replace(YourStr,"(?<=\s)N\s","")
thank you so much
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.