Home
About
Contact
Photo Gallery
Links
Articles
Personal
Forum
Home
Forum
Thread
Search
Язык сайта:
ENGLISH
RUSSIAN
Username:
*
Password:
*
Remember me
Register
Lost password
Thread:
C# основной форум
/Remove Cr Nl and all tags from the text
Post Reply
19 June 2008
16:30:00
Sergey
Posts: 0
Remove Cr Nl and all tags from the text
string Text =@" blblb";
Text = Text.Replace("\n", "").Replace("\r", "").Trim();
string Pattern = @"\<.*?\>";
Regex rgx = new Regex(Pattern);
Text = rgx.Replace(Text, "");
Console.WriteLine(Text);
Quote Post
Post Reply
Requesting information...