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

ASP.NET

 
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 
AnswerRe: regular expression Pin
AspDotNetDev6-May-11 7:47
protectorAspDotNetDev6-May-11 7:47 
fififlowertot wrote:
when all the remaining characters are numbers


Not sure what you mean by that.

However, the following regex will ensure the string ends with a dash followed by exactly 4 numeric digits.
-[0-9]{4}$

If you want to ensure the whole string is zero or more numeric digits followed by a dash followed by exactly 4 zeroes, this would work:
^[0-9]*-0{4}$


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 
GeneralRe: GridView Paging Pin
vanikanc5-May-11 10:29
vanikanc5-May-11 10:29 

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.