Click here to Skip to main content
15,903,201 members
Home / Discussions / C#
   

C#

 
QuestionUnable to add event handler for Minimizing the Ribbon Control in WPF Pin
Kushagra Tiwari15-Nov-11 2:10
Kushagra Tiwari15-Nov-11 2:10 
AnswerRe: Unable to add event handler for Minimizing the Ribbon Control in WPF Pin
JF201515-Nov-11 3:27
JF201515-Nov-11 3:27 
QuestionSynchronous webservice calls briefly freeze up multithreaded application Pin
CDP180215-Nov-11 1:27
CDP180215-Nov-11 1:27 
AnswerRe: Synchronous webservice calls briefly freeze up multithreaded application Pin
BobJanova15-Nov-11 2:41
BobJanova15-Nov-11 2:41 
GeneralRe: Synchronous webservice calls briefly freeze up multithreaded application Pin
CDP180215-Nov-11 3:09
CDP180215-Nov-11 3:09 
QuestionCan anyone explain how this Regex works? Pin
fiaolle14-Nov-11 22:17
fiaolle14-Nov-11 22:17 
AnswerRe: Can anyone explain how this Regex works? Pin
PIEBALDconsult15-Nov-11 1:53
mvePIEBALDconsult15-Nov-11 1:53 
AnswerRe: Can anyone explain how this Regex works? Pin
BillWoodruff15-Nov-11 2:28
professionalBillWoodruff15-Nov-11 2:28 
I truly appreciate the "deep art" of RegEx expressions, although I'd never spend time trying to reverse-engineer what any complex one, like this, does. My understanding is they are expanded internally into lots of code, but, when compiled, give excellent performance.

Meanwhile, have you considered an alternative like:
XML
char[] c = new char[] {'\"'};

string s = "all \"1 dl\"";

List<string> sList = (s.Split(c)).Where(str => str != "").ToList<string>();
Disclaimer: the above code was created very quickly, and tested only on your input string, making the assumption that you would have to escape the internal quote delimiters.

On your input it does work to create a two element List<string>, whose elements match the results of your RegEx.

Whether the above code is appropriate/robust, etc., for your parsing needs, I have no idea; it's meant only to show the possibility of an alternative.

good luck, Bill
"I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone." Bjarne Stroustrop circa 1990

AnswerRe: Can anyone explain how this Regex works? Pin
BobJanova15-Nov-11 2:47
BobJanova15-Nov-11 2:47 
QuestionCompiling x86 - x64 Pin
V.14-Nov-11 22:07
professionalV.14-Nov-11 22:07 
GeneralRe: Compiling x86 - x64 Pin
harold aptroot14-Nov-11 22:45
harold aptroot14-Nov-11 22:45 
GeneralRe: Compiling x86 - x64 Pin
V.14-Nov-11 22:57
professionalV.14-Nov-11 22:57 
GeneralRe: Compiling x86 - x64 Pin
Pete O'Hanlon14-Nov-11 23:04
mvePete O'Hanlon14-Nov-11 23:04 
GeneralRe: Compiling x86 - x64 Pin
V.14-Nov-11 23:21
professionalV.14-Nov-11 23:21 
GeneralRe: Compiling x86 - x64 Pin
harold aptroot14-Nov-11 23:07
harold aptroot14-Nov-11 23:07 
GeneralRe: Compiling x86 - x64 Pin
V.14-Nov-11 23:24
professionalV.14-Nov-11 23:24 
GeneralRe: Compiling x86 - x64 Pin
harold aptroot15-Nov-11 0:19
harold aptroot15-Nov-11 0:19 
GeneralRe: Compiling x86 - x64 Pin
V.15-Nov-11 0:37
professionalV.15-Nov-11 0:37 
QuestionPage Navigation Pin
pravin_mun14-Nov-11 18:43
pravin_mun14-Nov-11 18:43 
AnswerRe: Page Navigation Pin
Hum Dum14-Nov-11 19:28
Hum Dum14-Nov-11 19:28 
GeneralRe: Page Navigation Pin
pravin_mun14-Nov-11 19:50
pravin_mun14-Nov-11 19:50 
AnswerRe: Page Navigation Pin
Łukasz Nowakowski15-Nov-11 3:06
Łukasz Nowakowski15-Nov-11 3:06 
QuestionPassing Generic List<> to other forms Pin
Kendall Bodkin14-Nov-11 13:36
Kendall Bodkin14-Nov-11 13:36 
AnswerRe: Passing Generic List to other forms Pin
Luc Pattyn14-Nov-11 16:07
sitebuilderLuc Pattyn14-Nov-11 16:07 
GeneralRe: Passing Generic List to other forms Pin
Kendall Bodkin14-Nov-11 16:54
Kendall Bodkin14-Nov-11 16:54 

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.