Click here to Skip to main content
15,885,546 members
Home / Discussions / C#
   

C#

 
AnswerRe: Charting example- high priority Pin
wizardzz29-Oct-12 11:19
wizardzz29-Oct-12 11:19 
GeneralRe: Charting example- high priority Pin
SagarGK29-Oct-12 17:10
SagarGK29-Oct-12 17:10 
GeneralRe: Charting example- high priority Pin
Member 939112629-Oct-12 22:18
Member 939112629-Oct-12 22:18 
GeneralRe: Charting example- high priority Pin
SagarGK29-Oct-12 22:24
SagarGK29-Oct-12 22:24 
QuestionRegex getting special characters Pin
PozzaVecia28-Oct-12 4:18
PozzaVecia28-Oct-12 4:18 
AnswerRe: Regex getting special characters Pin
Richard Andrew x6428-Oct-12 4:37
professionalRichard Andrew x6428-Oct-12 4:37 
AnswerRe: Regex getting special characters Pin
Richard MacCutchan28-Oct-12 5:17
mveRichard MacCutchan28-Oct-12 5:17 
AnswerRe: Regex getting special characters Pin
OriginalGriff29-Oct-12 1:27
mveOriginalGriff29-Oct-12 1:27 
To add to what Richard says about the backslash: if you are trying to insert a double quote into the regex, then you have to be aware that it is a special character in C# as well, so it requires an escape character in the C# code: either \" or "" depending on whether you are prefixing the string with an '@' or not:
C#
string s = "text\"Hello\"more text";
string t = @"text""Hello""more text";
Both produce the same string:
text"Hello"more text


From there, you can use the number of Matches as the brackets count, but you should replace the '+' in your regex with a '*' if you want two matches from your sample string. '+' is "one or more", '*' is "zero or more" and since there are no characters between the brackets of "dog()" it would not match your expression.
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

QuestionHow do I expose the LoadCompleted method in the WebBrowser class in WPF C#? Pin
Xarzu27-Oct-12 19:00
Xarzu27-Oct-12 19:00 
AnswerRe: How do I expose the LoadCompleted method in the WebBrowser class in WPF C#? Pin
OriginalGriff27-Oct-12 22:14
mveOriginalGriff27-Oct-12 22:14 
AnswerRe: How do I expose the LoadCompleted method in the WebBrowser class in WPF C#? Pin
Richard MacCutchan28-Oct-12 0:21
mveRichard MacCutchan28-Oct-12 0:21 
QuestionHow to convert a string to an unique numeric value? Pin
gibsray27-Oct-12 1:09
gibsray27-Oct-12 1:09 
AnswerRe: How to convert a string to an unique numeric value? Pin
Alan N27-Oct-12 2:12
Alan N27-Oct-12 2:12 
AnswerRe: How to convert a string to an unique numeric value? Pin
Clifford Nelson29-Oct-12 9:56
Clifford Nelson29-Oct-12 9:56 
AnswerRe: How to convert a string to an unique numeric value? Pin
BobJanova29-Oct-12 23:39
BobJanova29-Oct-12 23:39 
QuestionWould you use a custom enumerator? Pin
DaveyM6926-Oct-12 21:40
professionalDaveyM6926-Oct-12 21:40 
AnswerRe: Would you use a custom enumerator? Pin
BobJanova29-Oct-12 0:32
BobJanova29-Oct-12 0:32 
GeneralRe: Would you use a custom enumerator? Pin
DaveyM6929-Oct-12 1:57
professionalDaveyM6929-Oct-12 1:57 
GeneralRe: Would you use a custom enumerator? Pin
BobJanova29-Oct-12 3:41
BobJanova29-Oct-12 3:41 
GeneralRe: Would you use a custom enumerator? Pin
DaveyM6929-Oct-12 11:00
professionalDaveyM6929-Oct-12 11:00 
AnswerRe: Would you use a custom enumerator? Pin
Richard Deeming29-Oct-12 2:17
mveRichard Deeming29-Oct-12 2:17 
GeneralRe: Would you use a custom enumerator? Pin
DaveyM6929-Oct-12 5:19
professionalDaveyM6929-Oct-12 5:19 
AnswerRe: Would you use a custom enumerator? Pin
Clifford Nelson29-Oct-12 8:52
Clifford Nelson29-Oct-12 8:52 
GeneralRe: Would you use a custom enumerator? Pin
DaveyM6929-Oct-12 10:45
professionalDaveyM6929-Oct-12 10:45 
Questionhow can we add a reference in c#.net project programmatically?? Pin
prani_partner26-Oct-12 19:45
prani_partner26-Oct-12 19:45 

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.