Click here to Skip to main content
15,907,493 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to get a value to return in a textbox Pin
Rotted Frog8-Apr-11 22:29
Rotted Frog8-Apr-11 22:29 
Questionthread.interrupt only working once Pin
Member 74021668-Apr-11 10:40
Member 74021668-Apr-11 10:40 
AnswerRe: thread.interrupt only working once Pin
davidnz8-Apr-11 12:13
davidnz8-Apr-11 12:13 
AnswerRe: thread.interrupt only working once Pin
Ganesh Kumar Kaki13-Apr-11 1:27
Ganesh Kumar Kaki13-Apr-11 1:27 
QuestionGlobal Hook : need help with SysMsgProc Pin
moums8-Apr-11 8:12
moums8-Apr-11 8:12 
QuestionQuerying LDAP from an application: get a search result when one attribute of a multiple attribute matches Pin
Bernhard Hiller8-Apr-11 1:28
Bernhard Hiller8-Apr-11 1:28 
AnswerRe: Querying LDAP from an application: get a search result when one attribute of a multiple attribute matches Pin
Ravi Bhavnani8-Apr-11 9:10
professionalRavi Bhavnani8-Apr-11 9:10 
QuestionWindow 7 and WebClient Class Pin
Wolfram Steinke7-Apr-11 17:32
Wolfram Steinke7-Apr-11 17:32 
AnswerRe: Window 7 and WebClient Class Pin
Bernhard Hiller7-Apr-11 21:58
Bernhard Hiller7-Apr-11 21:58 
GeneralRe: Window 7 and WebClient Class Pin
Wolfram Steinke9-Apr-11 0:20
Wolfram Steinke9-Apr-11 0:20 
AnswerRe: Window 7 and WebClient Class Pin
#realJSOP8-Apr-11 8:07
professional#realJSOP8-Apr-11 8:07 
AnswerRe: Window 7 and WebClient Class Pin
Ravi Bhavnani8-Apr-11 11:27
professionalRavi Bhavnani8-Apr-11 11:27 
QuestionA problem with ListView in VB.Net [modified] Pin
yoh.asakura7-Apr-11 7:12
yoh.asakura7-Apr-11 7:12 
GeneralRe: A problem with ListView in VB.Net Pin
Pete O'Hanlon7-Apr-11 7:16
mvePete O'Hanlon7-Apr-11 7:16 
GeneralRe: A problem with ListView in VB.Net Pin
Colin Angus Mackay8-Apr-11 14:09
Colin Angus Mackay8-Apr-11 14:09 
GeneralRe: A problem with ListView in VB.Net Pin
Pete O'Hanlon9-Apr-11 4:24
mvePete O'Hanlon9-Apr-11 4:24 
GeneralRe: A problem with ListView in VB.Net Pin
Colin Angus Mackay10-Apr-11 23:41
Colin Angus Mackay10-Apr-11 23:41 
GeneralRe: A problem with ListView in VB.Net Pin
Pete O'Hanlon11-Apr-11 0:38
mvePete O'Hanlon11-Apr-11 0:38 
AnswerRe: A problem with ListView in VB.Net Pin
Luc Pattyn7-Apr-11 7:35
sitebuilderLuc Pattyn7-Apr-11 7:35 
GeneralRe: A problem with ListView in VB.Net Pin
Mycroft Holmes7-Apr-11 22:21
professionalMycroft Holmes7-Apr-11 22:21 
AnswerRe: A problem with ListView in VB.Net Pin
#realJSOP8-Apr-11 8:08
professional#realJSOP8-Apr-11 8:08 
AnswerRe: A problem with ListView in VB.Net Pin
Dalek Dave9-Apr-11 4:56
professionalDalek Dave9-Apr-11 4:56 
QuestionMessage Removed Pin
7-Apr-11 2:34
fififlowertot7-Apr-11 2:34 
AnswerRe: Regular Expresssion [modified] Pin
Pete O'Hanlon7-Apr-11 2:47
mvePete O'Hanlon7-Apr-11 2:47 
fififlowertot wrote:
Hi ,
I needed to verify that the last 4 digits in a number are 0000.
The
number was of format 999999-0000 so i checked with a regular expression
@"\d-\(0){4}"
but now the '-' will not be there and it always just a number
with last 4 digits as 0 i.e 0000
I am unable to think of a regular expression
to validate this string. any help will be greatly appreciated.



This should have been asked in the Regular Expression forum. However, seeing that the question is here now, and seeing that I'm in a good mood, the regex for this is:
^(\d*(0){4})
[Edited to add deleted question in]

I'm not a stalker, I just know things. Oh by the way, you're out of milk.

Forgive your enemies - it messes with their heads


My blog | My articles | MoXAML PowerToys | Onyx


modified on Thursday, April 7, 2011 12:33 PM

GeneralRe: Regular Expresssion Pin
fififlowertot7-Apr-11 2:48
fififlowertot7-Apr-11 2:48 

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.