Click here to Skip to main content
15,884,425 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Database audit/journaling Pin
Ennis Ray Lynch, Jr.9-May-11 8:21
Ennis Ray Lynch, Jr.9-May-11 8:21 
QuestionASP & JavaScript Pin
future38397-May-11 1:56
future38397-May-11 1:56 
AnswerRe: ASP & JavaScript Pin
Luc Pattyn7-May-11 2:20
sitebuilderLuc Pattyn7-May-11 2:20 
AnswerRe: ASP & JavaScript Pin
keyur satyadev7-May-11 2:40
keyur satyadev7-May-11 2:40 
Questionregular expression Pin
fififlowertot5-May-11 23:00
fififlowertot5-May-11 23:00 
AnswerRe: regular expression Pin
Sneha Bisht5-May-11 23:38
Sneha Bisht5-May-11 23:38 
GeneralRe: regular expression Pin
Sneha Bisht5-May-11 23:45
Sneha Bisht5-May-11 23:45 
AnswerRe: regular expression Pin
Ravi Sant6-May-11 1:03
Ravi Sant6-May-11 1:03 
This one worked for me:

System.Text.RegularExpressions.Regex.IsMatch(str, @"[.\-]\d*(0){4}");


when tested:

bool b1 = Do("10.0000"); //false
            b1 = Do("10-0000"); //true
            b1 = Do("10-0000/"); //true 
            b1 = Do("10-0000."); //true
            b1 = Do("10-0000/-"); //true


where Do() is
private bool Do(string str)       {        return System.Text.RegularExpressions.Regex.IsMatch(str, @"[.\-]\d*(0){4}");      }

♫ 99 little bugs in the code,
99 bugs in the code
We fix a bug, compile it again
101 little bugs in the code ♫

AnswerRe: regular expression Pin
AspDotNetDev6-May-11 7:47
protectorAspDotNetDev6-May-11 7:47 
QuestionAjaxControlToolkit behaviour Pin
vanikanc5-May-11 10:39
vanikanc5-May-11 10:39 
AnswerRe: AjaxControlToolkit behaviour Pin
Prasanta_Prince6-May-11 7:14
Prasanta_Prince6-May-11 7:14 
GeneralRe: AjaxControlToolkit behaviour Pin
vanikanc6-May-11 10:45
vanikanc6-May-11 10:45 
GeneralRe: AjaxControlToolkit behaviour Pin
Herman<T>.Instance17-May-11 4:43
Herman<T>.Instance17-May-11 4:43 
Questionvalidate textbox Pin
jashimu5-May-11 4:24
jashimu5-May-11 4:24 
AnswerRe: validate textbox Pin
Not Active5-May-11 4:51
mentorNot Active5-May-11 4:51 
AnswerRe: validate textbox Pin
Prasanta_Prince5-May-11 5:02
Prasanta_Prince5-May-11 5:02 
GeneralRe: validate textbox Pin
jashimu5-May-11 7:49
jashimu5-May-11 7:49 
GeneralRe: validate textbox Pin
AspDotNetDev5-May-11 8:25
protectorAspDotNetDev5-May-11 8:25 
QuestionGridView Paging Pin
fififlowertot4-May-11 23:06
fififlowertot4-May-11 23:06 
AnswerRe: GridView Paging Pin
Ravi Sant5-May-11 0:26
Ravi Sant5-May-11 0:26 
GeneralRe: GridView Paging Pin
fififlowertot5-May-11 0:31
fififlowertot5-May-11 0:31 
AnswerRe: GridView Paging Pin
Legor5-May-11 3:44
Legor5-May-11 3:44 
GeneralRe: GridView Paging Pin
fififlowertot5-May-11 4:29
fififlowertot5-May-11 4:29 
GeneralRe: GridView Paging Pin
vanikanc5-May-11 9:23
vanikanc5-May-11 9:23 
GeneralRe: GridView Paging Pin
fififlowertot5-May-11 10:24
fififlowertot5-May-11 10:24 

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.