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

C#

 
QuestionBrowser Control Pin
A.Asif14-Nov-07 16:58
A.Asif14-Nov-07 16:58 
AnswerRe: Browser Control Pin
Not Active14-Nov-07 17:25
mentorNot Active14-Nov-07 17:25 
GeneralRe: Browser Control Pin
A.Asif15-Nov-07 3:38
A.Asif15-Nov-07 3:38 
QuestionBrowser Control using C# 2.0 Pin
A.Asif14-Nov-07 16:57
A.Asif14-Nov-07 16:57 
QuestionMORE graphics! Hooray! Pin
MasterSharp14-Nov-07 16:23
MasterSharp14-Nov-07 16:23 
AnswerRe: MORE graphics! Hooray! Pin
Dave Kreskowiak14-Nov-07 16:37
mveDave Kreskowiak14-Nov-07 16:37 
QuestionRegular Expressions Pin
Jeffrey Walton14-Nov-07 16:12
Jeffrey Walton14-Nov-07 16:12 
AnswerRe: Regular Expressions Pin
pmarfleet16-Nov-07 11:42
pmarfleet16-Nov-07 11:42 
The following expression removes the trailing '}' from the match.

(?<=<title.*>)*(?<={)([\s\S]*)(?=})

The problem with your expression is that the [\s\S]* subexpression matches the trailing '}' character and includes it in the match. The regex engine then moves to the following character. The zero-width positive lookbehind assertion (?<=})* successfully matches the preceding character, which is the '}', and the final zero-width positive lookahead assertion is also successful.

Adding the trailing '}' character to the zero-width positive lookahead assertion achieves the correct result because after matching the final parenthesis the regex engine looks forward and finds that the trailing '}' and every following character match this assertion, but doesn't include them in the match.

Paul Marfleet

"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush


GeneralRe: Regular Expressions Pin
Jeffrey Walton16-Nov-07 12:12
Jeffrey Walton16-Nov-07 12:12 
QuestionProblem registering MyClassLib.dll on VISTA Pin
Khoramdin14-Nov-07 13:43
Khoramdin14-Nov-07 13:43 
AnswerRe: Problem registering MyClassLib.dll Pin
Christian Graus14-Nov-07 14:27
protectorChristian Graus14-Nov-07 14:27 
AnswerRe: Problem registering MyClassLib.dll on VISTA Pin
Vasudevan Deepak Kumar14-Nov-07 19:01
Vasudevan Deepak Kumar14-Nov-07 19:01 
GeneralRe: how to read from idx file Pin
Dave Kreskowiak14-Nov-07 13:03
mveDave Kreskowiak14-Nov-07 13:03 
GeneralRe: how to read from idx file Pin
SABhatti14-Nov-07 14:05
SABhatti14-Nov-07 14:05 
GeneralRe: how to read from idx file Pin
Dave Kreskowiak14-Nov-07 16:30
mveDave Kreskowiak14-Nov-07 16:30 
GeneralRe: how to read from idx file Pin
SABhatti14-Nov-07 19:10
SABhatti14-Nov-07 19:10 
GeneralRe: how to read from idx file Pin
Dave Kreskowiak15-Nov-07 1:58
mveDave Kreskowiak15-Nov-07 1:58 
QuestionResizing locked? Pin
RussBus14-Nov-07 12:25
RussBus14-Nov-07 12:25 
AnswerRe: Resizing locked? Pin
Not Active14-Nov-07 12:31
mentorNot Active14-Nov-07 12:31 
AnswerRe: Resizing locked? Pin
Luc Pattyn14-Nov-07 13:42
sitebuilderLuc Pattyn14-Nov-07 13:42 
QuestionTo use first clicked button's .... and second clicked button's... in run time application? Pin
omegazafer14-Nov-07 10:05
omegazafer14-Nov-07 10:05 
AnswerRe: To use first clicked button's .... and second clicked button's... in run time application? Pin
Jason Henderson14-Nov-07 10:55
Jason Henderson14-Nov-07 10:55 
GeneralRe: To use first clicked button's .... and second clicked button's... in run time application? Pin
omegazafer14-Nov-07 11:00
omegazafer14-Nov-07 11:00 
GeneralRe: To use first clicked button's .... and second clicked button's... in run time application? Pin
Jason Henderson14-Nov-07 11:06
Jason Henderson14-Nov-07 11:06 
GeneralRe: To use first clicked button's .... and second clicked button's... in run time application? Pin
omegazafer14-Nov-07 11:15
omegazafer14-Nov-07 11:15 

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.