Click here to Skip to main content
15,914,010 members
Home / Discussions / C#
   

C#

 
Questionhiding process window Pin
Mridang Agarwalla3-Aug-06 2:07
Mridang Agarwalla3-Aug-06 2:07 
AnswerRe: hiding process window Pin
J4amieC3-Aug-06 2:24
J4amieC3-Aug-06 2:24 
AnswerRe: hiding process window Pin
Not Active3-Aug-06 2:33
mentorNot Active3-Aug-06 2:33 
QuestionDesigner Error in C# Pin
madhusri3-Aug-06 2:03
madhusri3-Aug-06 2:03 
AnswerRe: Designer Error in C# Pin
engsrini3-Aug-06 3:17
engsrini3-Aug-06 3:17 
QuestionList buttons, textboxes, etc, etc of a window. Pin
Marco22503-Aug-06 1:51
Marco22503-Aug-06 1:51 
AnswerRe: List buttons, textboxes, etc, etc of a window. Pin
Not Active3-Aug-06 2:20
mentorNot Active3-Aug-06 2:20 
QuestionRe: List buttons, textboxes, etc, etc of a window. Pin
Marco22503-Aug-06 2:27
Marco22503-Aug-06 2:27 
QuestionIntersection Of polygon Pin
praveenqwe3-Aug-06 1:45
praveenqwe3-Aug-06 1:45 
AnswerRe: Intersection Of polygon Pin
Christian Graus3-Aug-06 1:55
protectorChristian Graus3-Aug-06 1:55 
GeneralRe: Intersection Of polygon Pin
praveenqwe3-Aug-06 2:05
praveenqwe3-Aug-06 2:05 
GeneralRe: Intersection Of polygon Pin
Christian Graus3-Aug-06 11:25
protectorChristian Graus3-Aug-06 11:25 
Questionproperty file Pin
NasimKaziS3-Aug-06 1:34
NasimKaziS3-Aug-06 1:34 
AnswerRe: property file Pin
Not Active3-Aug-06 2:16
mentorNot Active3-Aug-06 2:16 
AnswerRe: property file Pin
J4amieC3-Aug-06 2:21
J4amieC3-Aug-06 2:21 
QuestionRegular expression format Pin
chandler833-Aug-06 1:30
chandler833-Aug-06 1:30 
AnswerRe: Regular expression format Pin
Christian Graus3-Aug-06 1:42
protectorChristian Graus3-Aug-06 1:42 
chandler83 wrote:
([0-9]+d )?([


Any number of digits, followed by a lowercase d. The ? means this group doesn't have to exist for there to be a match

next group does the same for digits followed by h, then the same with m, then the same with s. I believe that ^ means the start of a line, and $ means the end. This will match an empty line, or a line that matches any one of those groups. If there's only ever one group, and it could contain d/h/m or s after the numbers, then the better way to write it would be

Regex re=new Regex("^([0-9]+[dhms])$");

This also won't match an empty string. The brackets control grouping, groups that matched can be retrieved after performing a regex.




Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog

GeneralRe: Regular expression format [modified] Pin
User 66583-Aug-06 2:03
User 66583-Aug-06 2:03 
GeneralRe: Regular expression format Pin
Christian Graus3-Aug-06 11:21
protectorChristian Graus3-Aug-06 11:21 
GeneralRe: Regular expression format Pin
chandler833-Aug-06 2:08
chandler833-Aug-06 2:08 
AnswerRe: Regular expression format Pin
User 66583-Aug-06 2:06
User 66583-Aug-06 2:06 
Questionguys for now Pin
diddy343-Aug-06 1:03
diddy343-Aug-06 1:03 
AnswerRe: guys for now Pin
stancrm3-Aug-06 1:08
stancrm3-Aug-06 1:08 
GeneralI know Pin
diddy343-Aug-06 1:10
diddy343-Aug-06 1:10 
GeneralRe: I know Pin
stancrm3-Aug-06 1:12
stancrm3-Aug-06 1:12 

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.