Click here to Skip to main content
15,887,320 members
Home / Discussions / C#
   

C#

 
AnswerRe: Why the exception "Could not save; currently locked by another user" raise? Pin
Nouman Bhatti20-May-08 0:14
Nouman Bhatti20-May-08 0:14 
QuestionClient Installation problems.. Pin
ptr2void19-May-08 23:40
ptr2void19-May-08 23:40 
AnswerRe: Client Installation problems.. Pin
Christian Graus20-May-08 0:12
protectorChristian Graus20-May-08 0:12 
AnswerRe: Client Installation problems.. Pin
Nouman Bhatti20-May-08 0:13
Nouman Bhatti20-May-08 0:13 
GeneralRe: Client Installation problems.. Pin
ptr2void20-May-08 2:17
ptr2void20-May-08 2:17 
GeneralRe: Client Installation problems.. Pin
Nouman Bhatti20-May-08 5:06
Nouman Bhatti20-May-08 5:06 
AnswerRe: Client Installation problems.. Pin
Christian Wikander20-May-08 3:14
Christian Wikander20-May-08 3:14 
QuestionRegular expressio to replace \n to html break tag Pin
Exelioindia19-May-08 23:32
Exelioindia19-May-08 23:32 
Hi all,

Any one suggest me a regular expression that replace a "\n" char with HTML break tag( <br /> ). I did this using the following expression

string BodyText=Regex.Replace(Bodymsg, @"\n", "( <br /> )", RegexOptions.Multiline);

Bodymsg is dynamic text from database.

When i try to use the above expression it replaces all the "\n" like "\t\n", "\r\n", but for me the new line "\n" alone should be replaced not the new line with tab or carriage return for eg: "\t\n" or "\r\n" should not be replaced from "\t\n" to \t < br />


Thanks in advance

Know is Drop, Unknown is Ocean

AnswerRe: Regular expressio to replace \n to html break tag Pin
Christian Graus20-May-08 0:04
protectorChristian Graus20-May-08 0:04 
GeneralRe: Regular expressio to replace \n to html break tag Pin
Anthony Mushrow20-May-08 0:09
professionalAnthony Mushrow20-May-08 0:09 
GeneralRe: Regular expressio to replace \n to html break tag Pin
Christian Graus20-May-08 0:11
protectorChristian Graus20-May-08 0:11 
GeneralRe: Regular expressio to replace \n to html break tag Pin
Exelioindia20-May-08 1:34
Exelioindia20-May-08 1:34 
AnswerRe: Regular expressio to replace \n to html break tag Pin
Anthony Mushrow20-May-08 0:05
professionalAnthony Mushrow20-May-08 0:05 
GeneralRe: Regular expressio to replace \n to html break tag Pin
Exelioindia20-May-08 1:35
Exelioindia20-May-08 1:35 
AnswerRe: Regular expressio to replace \n to html break tag Pin
Vikram A Punathambekar20-May-08 0:12
Vikram A Punathambekar20-May-08 0:12 
GeneralRe: Regular expressio to replace \n to html break tag Pin
Christian Graus20-May-08 0:38
protectorChristian Graus20-May-08 0:38 
GeneralRe: Regular expressio to replace \n to html break tag Pin
Vikram A Punathambekar20-May-08 1:50
Vikram A Punathambekar20-May-08 1:50 
QuestionAdmission & Ticketing Pin
Member 336106019-May-08 23:24
Member 336106019-May-08 23:24 
AnswerRe: Admission & Ticketing Pin
Christian Graus20-May-08 0:08
protectorChristian Graus20-May-08 0:08 
QuestionGridView FAQ [modified] Pin
pinna_hari19-May-08 22:36
pinna_hari19-May-08 22:36 
QuestionNumber position Pin
D i x y19-May-08 22:07
D i x y19-May-08 22:07 
AnswerRe: Number position Pin
J4amieC19-May-08 22:09
J4amieC19-May-08 22:09 
GeneralRe: Number position Pin
Brady Kelly19-May-08 22:56
Brady Kelly19-May-08 22:56 
AnswerRe: Number position Pin
Programm3r19-May-08 22:49
Programm3r19-May-08 22:49 
JokeRe: Number position Pin
Brady Kelly19-May-08 23:39
Brady Kelly19-May-08 23:39 

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.