Click here to Skip to main content
15,891,708 members
Home / Discussions / C#
   

C#

 
QuestionLogging onto Exchange server using CDO Pin
dabs31-Aug-06 4:26
dabs31-Aug-06 4:26 
QuestionDiscover Changes in AD User Object? Pin
tombryan31-Aug-06 4:09
tombryan31-Aug-06 4:09 
QuestionDataGridView in C# Pin
peshawarcoder31-Aug-06 4:02
peshawarcoder31-Aug-06 4:02 
AnswerRe: DataGridView in C# Pin
Robert Rohde31-Aug-06 5:12
Robert Rohde31-Aug-06 5:12 
GeneralRe: DataGridView in C# Pin
peshawarcoder31-Aug-06 19:06
peshawarcoder31-Aug-06 19:06 
QuestionRegex.Replace Chr(10) Pin
J Liang31-Aug-06 4:01
J Liang31-Aug-06 4:01 
AnswerRe: Regex.Replace Chr(10) [modified] Pin
John Petersen31-Aug-06 5:14
John Petersen31-Aug-06 5:14 
GeneralRe: Regex.Replace Chr(10) Pin
J Liang31-Aug-06 5:50
J Liang31-Aug-06 5:50 
Hi John,

Thanks for the speedy reply. It doesn't really work. Let me show you more of the code.

tag = new Regex("<[^>]*>", RegexOptions.IgnoreCase); <--This was suppose to help me get rid all the HTML text which it works in VB.NET and don't seems to work in C#

for (counter = 0; counter <= PageText.Count - 1; counter++)
{
string str = Regex.Replace(PageText[counter].ToString(), "
", "\n");
str = tag.Replace(str, "");
str = Regex.Replace(str, " ", ""); <--By this line, all the HTML text should be alredy gone
str = Regex.Replace(str, "^\\s+", "");
str = Regex.Replace(str, "\\s+$", "");
PageText[counter] = str;
}

So if this Notify me by e-mail if someone answers this message pass into PageText[0] and send to process, it should left only "Notify me by e-mail if someone answers this message".

Hope I didn't confuse you, thanks in advance

Jie Liang
GeneralRe: Regex.Replace Chr(10) Pin
Guffa31-Aug-06 8:00
Guffa31-Aug-06 8:00 
GeneralRe: Regex.Replace Chr(10) Pin
John Petersen31-Aug-06 22:43
John Petersen31-Aug-06 22:43 
GeneralRe: Regex.Replace Chr(10) Pin
J Liang2-Sep-06 3:12
J Liang2-Sep-06 3:12 
QuestionLocking within a single thread Pin
Dan Neely31-Aug-06 3:55
Dan Neely31-Aug-06 3:55 
AnswerRe: Locking within a single thread Pin
Not Active31-Aug-06 5:06
mentorNot Active31-Aug-06 5:06 
AnswerRe: Locking within a single thread Pin
Nader Elshehabi31-Aug-06 5:14
Nader Elshehabi31-Aug-06 5:14 
GeneralRe: Locking within a single thread Pin
Dan Neely31-Aug-06 5:54
Dan Neely31-Aug-06 5:54 
AnswerRe: Locking within a single thread Pin
mav.northwind31-Aug-06 7:37
mav.northwind31-Aug-06 7:37 
QuestionUsing COM? Pin
Dominik Reichl31-Aug-06 3:20
Dominik Reichl31-Aug-06 3:20 
AnswerRe: Using COM? Pin
Bhupi Bhai1-Sep-06 2:55
Bhupi Bhai1-Sep-06 2:55 
Questionsetup file Pin
TAREQ F ABUZUHRI31-Aug-06 2:36
TAREQ F ABUZUHRI31-Aug-06 2:36 
AnswerRe: setup file Pin
Nader Elshehabi31-Aug-06 4:52
Nader Elshehabi31-Aug-06 4:52 
Questionhow to create a new .net solution at the run time or from other solution Pin
Brosis31-Aug-06 2:23
Brosis31-Aug-06 2:23 
AnswerRe: how to create a new .net solution at the run time or from other solution Pin
Nader Elshehabi31-Aug-06 4:56
Nader Elshehabi31-Aug-06 4:56 
GeneralRe: how to create a new .net solution at the run time or from other solution Pin
Brosis31-Aug-06 18:34
Brosis31-Aug-06 18:34 
AnswerRe: how to create a new .net solution at the run time or from other solution Pin
Nader Elshehabi1-Sep-06 5:16
Nader Elshehabi1-Sep-06 5:16 
Questionhow to use MD5 technics Pin
narendrakumarp31-Aug-06 2:23
narendrakumarp31-Aug-06 2:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.