Click here to Skip to main content
15,908,172 members
Home / Discussions / C#
   

C#

 
QuestionString.Replace() & Regex.Replace() not working Pin
Mou_kol15-May-21 22:40
Mou_kol15-May-21 22:40 
GeneralRe: String.Replace() & Regex.Replace() not working Pin
Tony Hill15-May-21 23:30
professionalTony Hill15-May-21 23:30 
It might help if you could give some before and after examples, from what I can see nothing would change from the test data provided.

Do yourself a favour and don't chain the replace statements like that as it makes it difficult to see what is going on and almost impossible to debug and is a maintenance nightmare and is neither clever or helpful.

Split the whole line into discrete steps so you can examine what the before and after values are at each replace step.
GeneralRe: String.Replace() & Regex.Replace() not working Pin
Mou_kol15-May-21 23:36
Mou_kol15-May-21 23:36 
SuggestionRe: String.Replace() & Regex.Replace() not working Pin
Tony Hill16-May-21 0:04
professionalTony Hill16-May-21 0:04 
GeneralRe: String.Replace() & Regex.Replace() not working Pin
Mou_kol16-May-21 0:21
Mou_kol16-May-21 0:21 
AnswerRe: String.Replace() & Regex.Replace() not working Pin
OriginalGriff16-May-21 0:20
mveOriginalGriff16-May-21 0:20 
GeneralRe: String.Replace() & Regex.Replace() not working Pin
Mou_kol16-May-21 0:21
Mou_kol16-May-21 0:21 
AnswerRe: String.Replace() & Regex.Replace() not working Pin
Gerry Schmitz16-May-21 11:04
mveGerry Schmitz16-May-21 11:04 
QuestionBug in form font Pin
Ismael Oliveira 202112-May-21 4:12
Ismael Oliveira 202112-May-21 4:12 
QuestionRe: Bug in form font Pin
Richard MacCutchan12-May-21 5:26
mveRichard MacCutchan12-May-21 5:26 
AnswerRe: Bug in form font Pin
OriginalGriff12-May-21 5:27
mveOriginalGriff12-May-21 5:27 
AnswerRe: Bug in form font Pin
Ismael Oliveira 202117-May-21 10:08
Ismael Oliveira 202117-May-21 10:08 
GeneralRe: Bug in form font Pin
Richard MacCutchan17-May-21 21:05
mveRichard MacCutchan17-May-21 21:05 
AnswerRe: Bug in form font Pin
OriginalGriff12-May-21 5:26
mveOriginalGriff12-May-21 5:26 
GeneralRe: Bug in form font Pin
Ismael Oliveira 202117-May-21 10:06
Ismael Oliveira 202117-May-21 10:06 
Question[SOLVED] Problem in a Web Service Pin
Luis M. Rojas12-May-21 3:54
Luis M. Rojas12-May-21 3:54 
AnswerRe: Problem in a Web Service Pin
OriginalGriff12-May-21 5:20
mveOriginalGriff12-May-21 5:20 
General[SOLVED] Re: Problem in a Web Service Pin
Luis M. Rojas12-May-21 5:23
Luis M. Rojas12-May-21 5:23 
Questiondata clustering Pin
Ahmed Alamdy10-May-21 14:02
Ahmed Alamdy10-May-21 14:02 
AnswerRe: data clustering Pin
Dave Kreskowiak10-May-21 19:27
mveDave Kreskowiak10-May-21 19:27 
AnswerRe: data clustering Pin
OriginalGriff10-May-21 20:21
mveOriginalGriff10-May-21 20:21 
AnswerRe: data clustering Pin
Pete O'Hanlon10-May-21 20:58
mvePete O'Hanlon10-May-21 20:58 
GeneralRe: data clustering Pin
OriginalGriff10-May-21 21:58
mveOriginalGriff10-May-21 21:58 
QuestionRegistry Redirection Pin
Richard Andrew x648-May-21 10:41
professionalRichard Andrew x648-May-21 10:41 
AnswerRe: Registry Redirection Pin
Dave Kreskowiak8-May-21 11:22
mveDave Kreskowiak8-May-21 11:22 

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.