Linked Questions

24 votes
3 answers
53k views

sorry if they are not very practical for C # Asp.Net, I hope to make me understand I have this situation string content = ClearHTMLTags(HttpUtility.HtmlDecode(e.Body)); content=content.Replace("\r\n",...
fabry19dice's user avatar
-3 votes
1 answer
129 views

String prod="pizza cafe",i want to print "PizzaCafe" .How to do that in Asp.net?i want to minimize space between pizza and cafe? String abc=TextBox1.Text; if TextBox1.Text="pizza cafe",i want to ...
user3006378's user avatar
327 votes
31 answers
629k views

I want to remove all special characters from a string. Allowed characters are A-Z (uppercase or lowercase), numbers (0-9), underscore (_), or the dot sign (.). I have the following, it works but I ...
ObiWanKenobi's user avatar
44 votes
9 answers
139k views

I have the following input: string txt = " i am a string " I want to remove space from start of starting and end from a string. The result should ...
user avatar
25 votes
7 answers
12k views

I have a string from which I have to remove following char: '\r', '\n', and '\t'. I have tried three different ways of removing these char and benchmarked them so I can get the fastest solution. ...
ata's user avatar
  • 9,081
-2 votes
4 answers
3k views

what I'm trying to do is I'm trying to reduce whitespace sizes to 1 characters (removing any unneeded whitespace. How should I deal with the task ? PS.: NO Regex EDIT.: Thanks, already succeeded, ...
user2629770's user avatar
0 votes
2 answers
4k views

I want to remove all white spaces from string variable which contains a sentence. Here is my code: string s = "This text contains white spaces"; string ns = s.Trim(); Variable "sn" should look like "...
Kalvis's user avatar
  • 655
3 votes
2 answers
804 views

I've got a problem which seems to be a real nut. I am using HTMLAgilityPack in order to read in an HTML page and use XPath to select a couple of elements I need. This works fine. Using XPATH, I'm ...
Rupal's user avatar
  • 480
0 votes
1 answer
992 views

I get a range of all "Good" cells in Column B of my excel sheet, the find the corresponding cells in the "D" Column and create a range of those cells. I want to convert all those cells to one single ...
Nicole Pinto's user avatar
0 votes
2 answers
1k views

So, my question is fairly simple. I have a string and I want to be able to use it in urls. Simple, right? The tricky part is, however, I want a custom way of encoding it. You see, my language is full ...
walther's user avatar
  • 13.6k