Click here to Skip to main content
15,895,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: remove escape sequence Pin
LiYS24-Feb-09 18:18
LiYS24-Feb-09 18:18 
GeneralRe: remove escape sequence Pin
Xmen Real 24-Feb-09 18:21
professional Xmen Real 24-Feb-09 18:21 
GeneralRe: remove escape sequence Pin
LiYS24-Feb-09 18:25
LiYS24-Feb-09 18:25 
GeneralRe: remove escape sequence Pin
Xmen Real 24-Feb-09 18:29
professional Xmen Real 24-Feb-09 18:29 
GeneralRe: remove escape sequence Pin
aaCog24-Feb-09 18:12
aaCog24-Feb-09 18:12 
AnswerRe: remove escape sequence Pin
Riaan Booyzen24-Feb-09 18:08
Riaan Booyzen24-Feb-09 18:08 
QuestionCustimize DataGridView Pin
anhdn200824-Feb-09 15:22
anhdn200824-Feb-09 15:22 
QuestionRegular expressions help Pin
alwaysthinking24-Feb-09 12:24
alwaysthinking24-Feb-09 12:24 
My input is
Deep Well, landscape [1,1]

and I need to parse at the comma so I will have "deep well" as 'WellType' and then after the space so that "landscape" will be 'WellOrientation'. Sounds easy. The catch is sometimes 'WellType' will have a space, and other times it will not. Also, Orientation can be all kinds of things not just landscape. And the [1,1] is fine no issues with that.

My current expression is

(?'WellType'[^,]*)\s(?'WellOrientation'[^\s])

And this my output is:

WellType: Deep
WellOrientation: W

Now Im pretty sure i know the problem, which is a first for me. [^,]* is saying keep going until you reach a comma, but then i have \s, which says stop at the space. Because the input has both a comma and a space im getting this output.

any ideas on how to get this working?
AnswerRe: Regular expressions help Pin
PIEBALDconsult24-Feb-09 13:05
mvePIEBALDconsult24-Feb-09 13:05 
GeneralRe: Regular expressions help Pin
alwaysthinking24-Feb-09 13:07
alwaysthinking24-Feb-09 13:07 
GeneralRe: Regular expressions help Pin
PIEBALDconsult24-Feb-09 13:09
mvePIEBALDconsult24-Feb-09 13:09 
GeneralRe: Regular expressions help Pin
ky_rerun24-Feb-09 14:54
ky_rerun24-Feb-09 14:54 
GeneralRe: Regular expressions help Pin
PIEBALDconsult24-Feb-09 15:00
mvePIEBALDconsult24-Feb-09 15:00 
QuestionImporting environment variables Pin
W. Kleinschmit24-Feb-09 12:03
W. Kleinschmit24-Feb-09 12:03 
AnswerRe: Importing environment variables Pin
Jon Rista24-Feb-09 12:33
Jon Rista24-Feb-09 12:33 
GeneralRe: Importing environment variables Pin
W. Kleinschmit24-Feb-09 12:49
W. Kleinschmit24-Feb-09 12:49 
AnswerRe: Importing environment variables Pin
PIEBALDconsult24-Feb-09 13:01
mvePIEBALDconsult24-Feb-09 13:01 
GeneralRe: Importing environment variables Pin
W. Kleinschmit24-Feb-09 13:11
W. Kleinschmit24-Feb-09 13:11 
GeneralRe: Importing environment variables Pin
PIEBALDconsult24-Feb-09 13:12
mvePIEBALDconsult24-Feb-09 13:12 
JokeRe: Importing environment variables Pin
W. Kleinschmit24-Feb-09 13:18
W. Kleinschmit24-Feb-09 13:18 
GeneralRe: Importing environment variables Pin
W. Kleinschmit24-Feb-09 13:27
W. Kleinschmit24-Feb-09 13:27 
GeneralRe: Importing environment variables Pin
PIEBALDconsult24-Feb-09 15:03
mvePIEBALDconsult24-Feb-09 15:03 
QuestionDisassembly cannot be displayed. The expression has not yet been translated to native machine code. Pin
bemahesh24-Feb-09 11:32
bemahesh24-Feb-09 11:32 
AnswerRe: Disassembly cannot be displayed. The expression has not yet been translated to native machine code. Pin
Mark Churchill24-Feb-09 14:07
Mark Churchill24-Feb-09 14:07 
QuestionProblem with multiple insert via TransactionScope class. Pin
hdv21224-Feb-09 10:58
hdv21224-Feb-09 10:58 

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.