Click here to Skip to main content
15,914,594 members
Home / Discussions / C#
   

C#

 
Questionc# application to WWW page Pin
gordon249-Nov-07 5:32
gordon249-Nov-07 5:32 
AnswerRe: c# application to WWW page Pin
Judah Gabriel Himango9-Nov-07 7:43
sponsorJudah Gabriel Himango9-Nov-07 7:43 
AnswerRe: c# application to WWW page Pin
ChrisKo9-Nov-07 8:23
ChrisKo9-Nov-07 8:23 
QuestionFileSystemWatcher Alternative Pin
ffowler9-Nov-07 3:58
ffowler9-Nov-07 3:58 
AnswerRe: FileSystemWatcher Alternative Pin
Judah Gabriel Himango9-Nov-07 4:28
sponsorJudah Gabriel Himango9-Nov-07 4:28 
AnswerRe: FileSystemWatcher Alternative Pin
ChrisKo9-Nov-07 8:22
ChrisKo9-Nov-07 8:22 
GeneralRe: FileSystemWatcher Alternative Pin
Luc Pattyn9-Nov-07 8:41
sitebuilderLuc Pattyn9-Nov-07 8:41 
GeneralRe: FileSystemWatcher Alternative Pin
ffowler9-Nov-07 9:00
ffowler9-Nov-07 9:00 
QuestionAsynchronous User Interface Pin
Tomerland9-Nov-07 3:12
Tomerland9-Nov-07 3:12 
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 

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.