Click here to Skip to main content
15,898,222 members
Home / Discussions / C#
   

C#

 
Generalservice Pin
imran_rafique17-Dec-02 11:07
imran_rafique17-Dec-02 11:07 
GeneralRe: service Pin
SimonS17-Dec-02 19:04
SimonS17-Dec-02 19:04 
GeneralRe: service Pin
imran_rafique17-Dec-02 21:41
imran_rafique17-Dec-02 21:41 
GeneralRe: service Pin
Rein Hillmann19-Dec-02 21:16
Rein Hillmann19-Dec-02 21:16 
GeneralRe: service Pin
imran_rafique20-Dec-02 0:19
imran_rafique20-Dec-02 0:19 
GeneralRe: service Pin
Rein Hillmann20-Dec-02 6:00
Rein Hillmann20-Dec-02 6:00 
QuestionDataGrid Disable Button or Cancel ShowParentDetailsButtonClick Event? Pin
RichB17-Dec-02 8:14
RichB17-Dec-02 8:14 
GeneralRegular Expressions Pin
mikasa17-Dec-02 6:35
mikasa17-Dec-02 6:35 
Ok, I am trying to make an Expression to evaluate a Short Time format (hh:mm). I've seen the standard format of "\d\d:\d\d" but I can't use it because it allows values greater than 23 for the Hour.

I've come up with one but I need help on the 2nd digit in the hour. Basically in laymen's terms it goes something like this: (1 or 2)(??):(0 - 5)(0 - 9). The Regular Expression looks like this: "[1,2](Nothing here??):[0-5]\d".

Here's what I need to do. If the first Digit is a "1", then the 2nd digit can be "\d" or "[0-9]" (for hours 0 - 19) . Otherwise, if the first digit is "2", then the 2nd digit can only be "[0-3]" (for hours to 20 - 23).

Can anyone help?
GeneralRe: Regular Expressions Pin
Richard Deeming17-Dec-02 6:48
mveRichard Deeming17-Dec-02 6:48 
GeneralRe: Regular Expressions Pin
Arun Bhalla17-Dec-02 7:16
Arun Bhalla17-Dec-02 7:16 
GeneralPicture from Excel Pin
mvmeijer17-Dec-02 4:35
mvmeijer17-Dec-02 4:35 
GeneralRe: Picture from Excel Pin
Stephane Rodriguez.17-Dec-02 5:03
Stephane Rodriguez.17-Dec-02 5:03 
GeneralRe: Picture from Excel Pin
mvmeijer17-Dec-02 5:20
mvmeijer17-Dec-02 5:20 
GeneralRe: Picture from Excel Pin
Stephane Rodriguez.17-Dec-02 19:07
Stephane Rodriguez.17-Dec-02 19:07 
GeneralSolved! Pin
mvmeijer18-Dec-02 2:56
mvmeijer18-Dec-02 2:56 
GeneralRe: Solved! Pin
Stephane Rodriguez.18-Dec-02 21:49
Stephane Rodriguez.18-Dec-02 21:49 
Questionvirtual list? Pin
User 988517-Dec-02 3:36
User 988517-Dec-02 3:36 
AnswerRe: virtual list? Pin
leppie17-Dec-02 6:07
leppie17-Dec-02 6:07 
GeneralRe: virtual list? Pin
User 988517-Dec-02 6:16
User 988517-Dec-02 6:16 
GeneralRe: virtual list? Pin
leppie17-Dec-02 6:37
leppie17-Dec-02 6:37 
GeneralRe: virtual list? Pin
User 988517-Dec-02 7:00
User 988517-Dec-02 7:00 
GeneralRe: virtual list? Pin
leppie17-Dec-02 7:09
leppie17-Dec-02 7:09 
GeneralSystem.TypeInitializationException error Pin
$iva16-Dec-02 19:18
$iva16-Dec-02 19:18 
GeneralGarbage Collection + threading question Pin
Radoslav Bielik16-Dec-02 12:27
Radoslav Bielik16-Dec-02 12:27 
GeneralRe: Garbage Collection + threading question Pin
Paul Ingles16-Dec-02 14:17
Paul Ingles16-Dec-02 14:17 

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.