Click here to Skip to main content
15,901,122 members
Home / Discussions / C#
   

C#

 
AnswerRe: Asynchronous User Interface Pin
Judah Gabriel Himango9-Nov-07 4:21
sponsorJudah Gabriel Himango9-Nov-07 4:21 
GeneralRe: Asynchronous User Interface Pin
Tomerland9-Nov-07 4:49
Tomerland9-Nov-07 4:49 
GeneralRe: Asynchronous User Interface Pin
Luc Pattyn9-Nov-07 5:01
sitebuilderLuc Pattyn9-Nov-07 5:01 
AnswerRe: Asynchronous User Interface Pin
led mike9-Nov-07 5:17
led mike9-Nov-07 5:17 
Questiondisplay contents in liswtbox Pin
new2pgrmg9-Nov-07 3:02
new2pgrmg9-Nov-07 3:02 
AnswerRe: display contents in liswtbox Pin
laserbaronen9-Nov-07 3:07
laserbaronen9-Nov-07 3:07 
AnswerRe: display contents in liswtbox Pin
Luc Pattyn9-Nov-07 3:53
sitebuilderLuc Pattyn9-Nov-07 3:53 
QuestionRegex problem Pin
laserbaronen9-Nov-07 2:57
laserbaronen9-Nov-07 2:57 
(?mx-s:\#region\b
(?<name>.*)
 (?<content>
    
    (?>
         
        \#region\b.* (?<djup>) |
        \#endregion\b (?<-djup>) |
        [^\#]+
     )+
     (?(djup)(?!))
)
\#endregion\b.*
)


This is my pattern, it gets the content of #region sections. It works perfectly in Expresso,
but when i run it on the same code in C# it does not!

   const string GET_REGIONS = @"(?mx-s:\#region\b
(?<name>.*)
 (?<content>
    
    (?>
         
        \#region\b.* (?<djup>) |
        \#endregion\b (?<-djup>) |
        [^\#]+
     )+
     (?(djup)(?!))
)
\#endregion\b.*
)
";

MatchCollection regions = Regex.Matches(classContent, GET_REGIONS); // <- Does not work


Any ideas about what im doing wrong? Confused | :confused: Confused | :confused:

fafafa, ringakta icke sådant som bringa ack så naggande högönsklig välmåga å baronens ära.

AnswerRe: Regex problem Pin
laserbaronen9-Nov-07 4:28
laserbaronen9-Nov-07 4:28 
QuestionSet checked state on all selected rows in datagridview Pin
hakonvik9-Nov-07 2:53
hakonvik9-Nov-07 2:53 
AnswerRe: Set checked state on all selected rows in datagridview Pin
Nathan Holt at EMOM9-Nov-07 5:30
Nathan Holt at EMOM9-Nov-07 5:30 
GeneralRe: Set checked state on all selected rows in datagridview Pin
hakonvik9-Nov-07 10:07
hakonvik9-Nov-07 10:07 
QuestionSqlNotification Problem. Pin
hdv2129-Nov-07 1:46
hdv2129-Nov-07 1:46 
AnswerRe: SqlNotification Problem. Pin
TJoe9-Nov-07 2:06
TJoe9-Nov-07 2:06 
GeneralRe: SqlNotification Problem. Pin
hdv2129-Nov-07 4:19
hdv2129-Nov-07 4:19 
QuestionLoad an image with directx Pin
QzRz9-Nov-07 1:27
QzRz9-Nov-07 1:27 
QuestionThousands of remote message queues - possible? Pin
jenspa8-Nov-07 23:46
jenspa8-Nov-07 23:46 
AnswerRe: Thousands of remote message queues - possible? Pin
jenspa9-Nov-07 1:16
jenspa9-Nov-07 1:16 
QuestionInteresting Project? Pin
daviiie8-Nov-07 23:37
daviiie8-Nov-07 23:37 
AnswerRe: Interesting Project? Pin
Colin Angus Mackay9-Nov-07 0:43
Colin Angus Mackay9-Nov-07 0:43 
GeneralRe: Interesting Project? Pin
daviiie9-Nov-07 1:20
daviiie9-Nov-07 1:20 
Questiongridviewer Pin
merwa8-Nov-07 23:31
merwa8-Nov-07 23:31 
QuestionSimulate mouseclick?? Pin
jafingi8-Nov-07 23:03
jafingi8-Nov-07 23:03 
AnswerRe: Simulate mouseclick?? [modified] Pin
Rajasekharan Vengalil9-Nov-07 0:38
Rajasekharan Vengalil9-Nov-07 0:38 
GeneralRe: Simulate mouseclick?? Pin
jafingi27-Nov-07 5:13
jafingi27-Nov-07 5:13 

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.