Click here to Skip to main content
15,891,704 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to retrieve single row from datatable? Pin
Blue_Boy14-Jun-11 3:58
Blue_Boy14-Jun-11 3:58 
QuestionSplit string with Regex Pin
Ronald de Boer13-Jun-11 17:37
Ronald de Boer13-Jun-11 17:37 
AnswerRe: Split string with Regex Pin
PIEBALDconsult13-Jun-11 18:24
mvePIEBALDconsult13-Jun-11 18:24 
AnswerRe: Split string with Regex Pin
Richard MacCutchan13-Jun-11 21:50
mveRichard MacCutchan13-Jun-11 21:50 
AnswerRe: Split string with Regex Pin
RakeshMeena13-Jun-11 23:15
RakeshMeena13-Jun-11 23:15 
AnswerRe: Split string with Regex Pin
anishkannan14-Jun-11 1:01
anishkannan14-Jun-11 1:01 
AnswerRe: Split string with Regex Pin
#realJSOP14-Jun-11 7:27
mve#realJSOP14-Jun-11 7:27 
AnswerRe: Split string with Regex [modified] Pin
Lutosław14-Jun-11 21:25
Lutosław14-Jun-11 21:25 
Try
(.*((\"([\d\w]+)\":)|(\s([\d\w]+) =)))*

The group no 4 contains keys like key or stringC and group 6 contins keys like StringB
EDIT: Of course you need to code
string expr = @"(.*((\"([\d\w]+)\":)|(\s([\d\w]+) =)))*";
var m = Regex.Match(expr);
var group4 = m.Groups[4];
var group6 = m.Group[6];
string[] allStrings = group4.Captures.Select(c=>c.Value).Union(group6.Select(c=>c.Value)).ToArray();

captures now contains strings you need
DISCLAIMER:
1. not tested.
2. use named groups if you want to.
Greetings - Jacek
modified on Wednesday, June 15, 2011 3:38 AM

QuestionHow to get Windows Country List (Location List) seen in the Control Panel Pin
MrSmoofy13-Jun-11 13:30
MrSmoofy13-Jun-11 13:30 
AnswerRe: How to get Windows Country List (Location List) seen in the Control Panel Pin
Luc Pattyn13-Jun-11 14:05
sitebuilderLuc Pattyn13-Jun-11 14:05 
GeneralRe: How to get Windows Country List (Location List) seen in the Control Panel Pin
MrSmoofy13-Jun-11 14:08
MrSmoofy13-Jun-11 14:08 
AnswerRe: How to get Windows Country List (Location List) seen in the Control Panel Pin
Luc Pattyn13-Jun-11 14:13
sitebuilderLuc Pattyn13-Jun-11 14:13 
AnswerRe: How to get Windows Country List (Location List) seen in the Control Panel Pin
PIEBALDconsult13-Jun-11 15:02
mvePIEBALDconsult13-Jun-11 15:02 
GeneralRe: How to get Windows Country List (Location List) seen in the Control Panel Pin
MrSmoofy14-Jun-11 1:25
MrSmoofy14-Jun-11 1:25 
AnswerRe: How to get Windows Country List (Location List) seen in the Control Panel Pin
OriginalGriff13-Jun-11 23:49
mveOriginalGriff13-Jun-11 23:49 
GeneralRe: How to get Windows Country List (Location List) seen in the Control Panel Pin
MrSmoofy14-Jun-11 1:26
MrSmoofy14-Jun-11 1:26 
AnswerRe: How to get Windows Country List (Location List) seen in the Control Panel Pin
Eddy Vluggen14-Jun-11 0:14
professionalEddy Vluggen14-Jun-11 0:14 
GeneralRe: How to get Windows Country List (Location List) seen in the Control Panel Pin
MrSmoofy14-Jun-11 1:32
MrSmoofy14-Jun-11 1:32 
AnswerRe: How to get Windows Country List (Location List) seen in the Control Panel Pin
Eddy Vluggen14-Jun-11 1:44
professionalEddy Vluggen14-Jun-11 1:44 
GeneralRe: How to get Windows Country List (Location List) seen in the Control Panel Pin
MrSmoofy14-Jun-11 2:09
MrSmoofy14-Jun-11 2:09 
AnswerRe: How to get Windows Country List (Location List) seen in the Control Panel Pin
Eddy Vluggen14-Jun-11 2:35
professionalEddy Vluggen14-Jun-11 2:35 
GeneralRe: How to get Windows Country List (Location List) seen in the Control Panel Pin
MrSmoofy14-Jun-11 2:38
MrSmoofy14-Jun-11 2:38 
GeneralRe: How to get Windows Country List (Location List) seen in the Control Panel Pin
PIEBALDconsult14-Jun-11 2:47
mvePIEBALDconsult14-Jun-11 2:47 
GeneralRe: How to get Windows Country List (Location List) seen in the Control Panel Pin
MrSmoofy14-Jun-11 3:04
MrSmoofy14-Jun-11 3:04 
GeneralRe: How to get Windows Country List (Location List) seen in the Control Panel Pin
PIEBALDconsult14-Jun-11 3:06
mvePIEBALDconsult14-Jun-11 3:06 

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.