Click here to Skip to main content
15,891,938 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: store date to database Pin
Aman Bhullar3-Sep-09 19:17
Aman Bhullar3-Sep-09 19:17 
QuestionWake Up PDA with CeRunAppAtTime Pin
Simon Ashford2-Sep-09 10:33
Simon Ashford2-Sep-09 10:33 
QuestionRegexp for date? Pin
Michael Pauli2-Sep-09 9:34
Michael Pauli2-Sep-09 9:34 
AnswerRe: Regexp for date? Pin
Michael Pauli2-Sep-09 9:46
Michael Pauli2-Sep-09 9:46 
AnswerRe: Regexp for date? Pin
annathor2-Sep-09 20:39
annathor2-Sep-09 20:39 
GeneralRe: Regexp for date? Pin
Michael Pauli2-Sep-09 21:00
Michael Pauli2-Sep-09 21:00 
AnswerRe: Regexp for date? Pin
Gideon Engelberth3-Sep-09 2:51
Gideon Engelberth3-Sep-09 2:51 
GeneralRe: Regexp for date? Pin
Michael Pauli3-Sep-09 3:32
Michael Pauli3-Sep-09 3:32 
Also this works:

private readonly string STR_DDMMYYYY_PATTERN = @"^([0][1-9]|[1-2][0-9]|[3][0-1])-([0][1-9]|[1][0-2])-([1][9][7-9][0-9]|[2][0][0-9][0-9])$";

I figured the {1} problem out also. Seems that the validator-site is OK with dealing with apparently redundant chars - but class Regex are not?

So now this is OK:

Regex regexpDDMMYYYY = new Regex(STR_DDMMYYYY_PATTERN);
bool bIsValid = regexpDDMMYYYY.IsMatch(tbGeneral.Text);
if (bIsValid)
{
...
etc.


I'll test the [1][9] replacement also.

Thanx' again.

Michael Mogensen

AnswerRe: Regexp for date? Pin
Pete O'Hanlon3-Sep-09 4:23
mvePete O'Hanlon3-Sep-09 4:23 
Questionconnection string error Pin
vishal lele2-Sep-09 1:54
vishal lele2-Sep-09 1:54 
AnswerRe: connection string error Pin
Eddy Vluggen2-Sep-09 3:21
professionalEddy Vluggen2-Sep-09 3:21 
QuestionCannot start a .NET assembly after password change Pin
A. Delcroix2-Sep-09 1:27
A. Delcroix2-Sep-09 1:27 
QuestionError 1053: The service did not respond to the start or control request in a timely fashion. Pin
khayyam221-Sep-09 20:25
khayyam221-Sep-09 20:25 
AnswerRe: Error 1053: The service did not respond to the start or control request in a timely fashion. Pin
Aman Bhullar1-Sep-09 20:31
Aman Bhullar1-Sep-09 20:31 
GeneralRe: Error 1053: The service did not respond to the start or control request in a timely fashion. Pin
khayyam221-Sep-09 20:35
khayyam221-Sep-09 20:35 
GeneralRe: Error 1053: The service did not respond to the start or control request in a timely fashion. Pin
khayyam221-Sep-09 21:11
khayyam221-Sep-09 21:11 
GeneralRe: Error 1053: The service did not respond to the start or control request in a timely fashion. Pin
khayyam221-Sep-09 21:12
khayyam221-Sep-09 21:12 
Questionchange label text at runtime Pin
rashid20091-Sep-09 19:55
rashid20091-Sep-09 19:55 
AnswerRe: change label text at runtime Pin
Aman Bhullar1-Sep-09 20:34
Aman Bhullar1-Sep-09 20:34 
AnswerRe: change label text at runtime Pin
programmervb.netc++3-Sep-09 11:52
programmervb.netc++3-Sep-09 11:52 
Questionrequest for reply Pin
fizza bib1-Sep-09 17:59
fizza bib1-Sep-09 17:59 
AnswerRe: request for reply Pin
Aman Bhullar1-Sep-09 20:26
Aman Bhullar1-Sep-09 20:26 
GeneralRe: request for reply Pin
fizza bib6-Sep-09 17:20
fizza bib6-Sep-09 17:20 
GeneralRe: request for reply Pin
fizza bib6-Sep-09 17:21
fizza bib6-Sep-09 17:21 
QuestionLock the USB Pen drive Pin
Khanna Gaurav1-Sep-09 8:27
Khanna Gaurav1-Sep-09 8:27 

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.