Click here to Skip to main content
14,976,940 members
Home / Discussions / C#
   

C#

 
QuestionGet folders like the one for mega, drop box Pin
Duc Axenn19-May-21 11:35
MemberDuc Axenn19-May-21 11:35 
AnswerRe: Get folders like the one for mega, drop box Pin
Dave Kreskowiak19-May-21 11:58
mveDave Kreskowiak19-May-21 11:58 
GeneralRe: Get folders like the one for mega, drop box Pin
Duc Axenn19-May-21 13:45
MemberDuc Axenn19-May-21 13:45 
GeneralRe: Get folders like the one for mega, drop box Pin
Dave Kreskowiak19-May-21 14:34
mveDave Kreskowiak19-May-21 14:34 
GeneralRe: Get folders like the one for mega, drop box Pin
Duc Axenn19-May-21 21:27
MemberDuc Axenn19-May-21 21:27 
QuestionIs ILMerge still used ? Pin
Maximilien19-May-21 9:05
MemberMaximilien19-May-21 9:05 
AnswerRe: Is ILMerge still used ? Pin
Dave Kreskowiak19-May-21 9:48
mveDave Kreskowiak19-May-21 9:48 
QuestionString.Replace() & Regex.Replace() not working Pin
Mou_kol15-May-21 22:40
MemberMou_kol15-May-21 22:40 
I am trying to replace a text with something. most often it works but for a particular text replace not working. here is the code example.

C#
string maindata = "Operational Metrics~Domestic Subscribers Disney+~2015 FY~9999";
            string data =     "Operational Metrics~Domestic Subscribers Disney+~2015 FY~9999";

            //data = Regex.Escape(data);

            string strformula = Regex.Replace(maindata, "\"" + data.Replace("(", "\\(").Replace(")", "\\)").Replace("$", "\\$") + "\"", "W51",RegexOptions.IgnoreCase);
            strformula = maindata.Replace("\"" + data.Replace("(", "\\(").Replace(")", "\\)").Replace("$", "\\$") + "\"", "W51");


i tried both Regex.Replace() & String.Replace() but no luck. what is so special in the text "Operational Metrics~Domestic Subscribers Disney+~2015 FY~9999" for which replace not working ?

please give me some direction. thanks
GeneralRe: String.Replace() & Regex.Replace() not working Pin
Tony Hill15-May-21 23:30
MemberTony Hill15-May-21 23:30 
GeneralRe: String.Replace() & Regex.Replace() not working Pin
Mou_kol15-May-21 23:36
MemberMou_kol15-May-21 23:36 
SuggestionRe: String.Replace() & Regex.Replace() not working Pin
Tony Hill16-May-21 0:04
MemberTony Hill16-May-21 0:04 
GeneralRe: String.Replace() & Regex.Replace() not working Pin
Mou_kol16-May-21 0:21
MemberMou_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
MemberMou_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
MemberIsmael 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
MemberIsmael 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
MemberIsmael Oliveira 202117-May-21 10:06 
Question[SOLVED] Problem in a Web Service Pin
Luis M. Rojas12-May-21 3:54
MemberLuis 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
MemberLuis M. Rojas12-May-21 5: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.