Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
QuestionOrdering sub-elements in a PropertyGrid Pin
Wags21-Apr-10 0:57
professionalWags21-Apr-10 0:57 
AnswerRe: Ordering sub-elements in a PropertyGrid Pin
DaveyM6921-Apr-10 1:07
professionalDaveyM6921-Apr-10 1:07 
GeneralRe: Ordering sub-elements in a PropertyGrid Pin
Wags21-Apr-10 1:38
professionalWags21-Apr-10 1:38 
GeneralRe: Ordering sub-elements in a PropertyGrid Pin
DaveyM6921-Apr-10 2:08
professionalDaveyM6921-Apr-10 2:08 
GeneralRe: Ordering sub-elements in a PropertyGrid Pin
Wags21-Apr-10 2:15
professionalWags21-Apr-10 2:15 
GeneralRe: Ordering sub-elements in a PropertyGrid Pin
DaveyM6921-Apr-10 2:20
professionalDaveyM6921-Apr-10 2:20 
QuestionRegexp dilema Pin
skelmannen21-Apr-10 0:37
skelmannen21-Apr-10 0:37 
AnswerRe: Regexp dilema Pin
J4amieC21-Apr-10 1:38
J4amieC21-Apr-10 1:38 
You already have the number part wrapped in parenthesis - which implies a capture group - so you already have it.

I suggest you download expresso - a very helpful tool for debugging regex - google will be your friend in finding it.

Having tested your regex using expresso. I can give you 2 pointers:

1) Name your capture for numbers - it makes it alot easier to extract just the numbers:

(?<numbers>\d{3}\s\d{2})(\s[A-Z])|(?<numbers>\d{5})(\s[A-Z])


2) You're only testing for upper case chars - so your regexp only captures as far as the 'C' in city. Fix this like so:

(?<numbers>\d{3}\s\d{2})(\s[A-Z])|(?<numbers>\d{5})(\s[A-Za-z])

GeneralRe: Regexp dilema Pin
skelmannen21-Apr-10 2:43
skelmannen21-Apr-10 2:43 
AnswerRe: Regexp dilema Pin
PIEBALDconsult21-Apr-10 3:30
mvePIEBALDconsult21-Apr-10 3:30 
GeneralRe: Regexp dilema Pin
skelmannen21-Apr-10 3:41
skelmannen21-Apr-10 3:41 
GeneralRe: Regexp dilema Pin
PIEBALDconsult21-Apr-10 7:58
mvePIEBALDconsult21-Apr-10 7:58 
AnswerRe: Regexp dilema Pin
Kythen21-Apr-10 6:00
Kythen21-Apr-10 6:00 
GeneralRe: Regexp dilema Pin
skelmannen21-Apr-10 21:28
skelmannen21-Apr-10 21:28 
QuestionStorage card in the emulator Pin
bacem smari20-Apr-10 23:53
bacem smari20-Apr-10 23:53 
AnswerRe: Storage card in the emulator Pin
Michel Godfroid21-Apr-10 2:03
Michel Godfroid21-Apr-10 2:03 
RantRe: Storage card in the emulator Pin
bacem smari21-Apr-10 2:54
bacem smari21-Apr-10 2:54 
AnswerRe: Storage card in the emulator Pin
bacem smari21-Apr-10 3:48
bacem smari21-Apr-10 3:48 
QuestionAdd checkboxs dynamically in csharp smart device project Pin
Tunisien8620-Apr-10 23:28
Tunisien8620-Apr-10 23:28 
GeneralRe: Add checkboxs dynamically in csharp smart device project Pin
Tunisien8621-Apr-10 5:26
Tunisien8621-Apr-10 5:26 
Questiontype casting a string to a type which is getting received in a string Pin
dashingsidds20-Apr-10 23:20
dashingsidds20-Apr-10 23:20 
AnswerRe: type casting a string to a type which is getting received in a string Pin
surender.m20-Apr-10 23:34
surender.m20-Apr-10 23:34 
GeneralRe: type casting a string to a type which is getting received in a string Pin
J4amieC21-Apr-10 1:40
J4amieC21-Apr-10 1:40 
GeneralRe: type casting a string to a type which is getting received in a string Pin
surender.m21-Apr-10 1:47
surender.m21-Apr-10 1:47 
GeneralRe: type casting a string to a type which is getting received in a string Pin
J4amieC21-Apr-10 1:50
J4amieC21-Apr-10 1:50 

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.