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

C#

 
GeneralRe: HOW TO RETRIVE ALL TRANSACTION from sqlserver where TODAYS DATE AS PARAMETER IN SQL QUERY.? Pin
PIEBALDconsult21-Apr-10 15:27
mvePIEBALDconsult21-Apr-10 15:27 
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 
Hola!

I want to use a regexp, and I've partly came up with it, but I cannot get the last bit to work. The regular expression I'm currently using looks like this:

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

And I want to use it extracting a Swedish zip code which looks as follows:

111 11 City
or
11111 City

The reason I have the letter in the Regexp is that I don't want any other number sequence.

So the question is:

Is there a way to just get the numbers from my regexp, some kind of split or something like that?

All the best

Simon
AnswerRe: Regexp dilema Pin
J4amieC21-Apr-10 1:38
J4amieC21-Apr-10 1:38 
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 

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.