Click here to Skip to main content
15,890,825 members
Home / Discussions / C#
   

C#

 
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 
GeneralThank u Pin
diddy343-Aug-06 1:15
diddy343-Aug-06 1:15 
GeneralRe: Thank u Pin
Ingo3-Aug-06 1:37
Ingo3-Aug-06 1:37 
GeneralRe: Thank u Pin
Dave Kreskowiak3-Aug-06 1:52
mveDave Kreskowiak3-Aug-06 1:52 
AnswerRe: guys for now Pin
Christian Graus3-Aug-06 1:46
protectorChristian Graus3-Aug-06 1:46 
QuestionPopulate dataset Pin
Mamphekgo3-Aug-06 0:49
Mamphekgo3-Aug-06 0:49 
AnswerRe: Populate dataset [modified] Pin
NasimKaziS3-Aug-06 1:38
NasimKaziS3-Aug-06 1:38 
QuestionC# books online Pin
vikas amin3-Aug-06 0:49
vikas amin3-Aug-06 0:49 
AnswerRe: C# books online Pin
yueue3-Aug-06 3:16
yueue3-Aug-06 3:16 
GeneralRe: C# books online [modified] Pin
vikas amin3-Aug-06 3:40
vikas amin3-Aug-06 3:40 

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.