How do I remove unnecessary white spaces from collection of strings?
Actually this question I have gathered from CDNUG forum. So as usually, I tried to give answer and finally manage write below code.
The string need to remove unwanted white spaces:
“ I Love ASP.NET forum. “
The final output should be like below:
“I Love ASP.NET forum.”
Solution:
Labels: ASP.NET




1 Comments:
Or you could have done it a better way, and just used search-and-replace with regular expressions.
Post a Comment
<< Home