Click here to Skip to main content
15,888,521 members
Home / Discussions / C#
   

C#

 
Questionremove escape sequence [modified] Pin
LiYS24-Feb-09 17:35
LiYS24-Feb-09 17:35 
AnswerRe: remove escape sequence Pin
aaCog24-Feb-09 17:39
aaCog24-Feb-09 17:39 
GeneralRe: remove escape sequence Pin
LiYS24-Feb-09 17:44
LiYS24-Feb-09 17:44 
GeneralRe: remove escape sequence Pin
Xmen Real 24-Feb-09 17:54
professional Xmen Real 24-Feb-09 17:54 
AnswerRe: remove escape sequence Pin
Xmen Real 24-Feb-09 17:51
professional Xmen Real 24-Feb-09 17:51 
GeneralRe: remove escape sequence Pin
LiYS24-Feb-09 18:00
LiYS24-Feb-09 18:00 
GeneralRe: remove escape sequence Pin
Xmen Real 24-Feb-09 18:08
professional Xmen Real 24-Feb-09 18:08 
GeneralRe: remove escape sequence Pin
LiYS24-Feb-09 18:12
LiYS24-Feb-09 18:12 
GeneralRe: remove escape sequence Pin
Xmen Real 24-Feb-09 18:17
professional Xmen Real 24-Feb-09 18:17 
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 

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.