Click here to Skip to main content
15,910,980 members
Home / Discussions / C#
   

C#

 
QuestionC# Help please! Pin
humblepgmr4-Oct-07 13:00
humblepgmr4-Oct-07 13:00 
AnswerRe: C# Help please! Pin
Guffa4-Oct-07 13:12
Guffa4-Oct-07 13:12 
GeneralRe: C# Help please! Pin
Christian Graus4-Oct-07 14:41
protectorChristian Graus4-Oct-07 14:41 
GeneralRe: C# Help please! Pin
Anthony Mushrow4-Oct-07 14:57
professionalAnthony Mushrow4-Oct-07 14:57 
GeneralRe: C# Help please! Pin
Christian Graus4-Oct-07 15:17
protectorChristian Graus4-Oct-07 15:17 
GeneralRe: C# Help please! Pin
Anthony Mushrow4-Oct-07 15:23
professionalAnthony Mushrow4-Oct-07 15:23 
AnswerRe: C# Help please! Pin
Guffa4-Oct-07 19:52
Guffa4-Oct-07 19:52 
QuestionComplex Regular Expression Pin
Skippums4-Oct-07 12:37
Skippums4-Oct-07 12:37 
I have the following regular expression almost working...

Regex myRegex = new Regex(
"(?<=<(?<tagName>\\S+)\\s+className=\"LiteralClassName.*?>\\s*)\\S.*?\\S(?=\\s*</\\k<tagName>>)", RegexOptions.Singleline);


Basically, I don't know the tag name, so I am using a match class to capture any tag that has an attribute "className" whose value begins with "LiteralClassName". Essentially, this regex is getting the innerXml property for all matching tags of this sort. One of the problems that I am having is that if the tag name is, say "Item", and another tag of type "Item" exists within the inner xml of what I am trying to capture, then I get f'ed. Is there some way to specify that there are an equal number of "<[^/]" and "</" between my tagName class (ie, to ensure that the number of start tags and end tags are equal)? Thanks,

Jeff
AnswerRe: Complex Regular Expression Pin
MidwestLimey5-Oct-07 5:18
professionalMidwestLimey5-Oct-07 5:18 
GeneralRe: Complex Regular Expression Pin
Skippums5-Oct-07 5:36
Skippums5-Oct-07 5:36 
GeneralRe: Complex Regular Expression Pin
MidwestLimey5-Oct-07 6:08
professionalMidwestLimey5-Oct-07 6:08 
QuestionDownload File From Website With Login Pin
redfish344-Oct-07 11:39
redfish344-Oct-07 11:39 
AnswerRe: Download File From Website With Login Pin
Scott Dorman4-Oct-07 11:54
professionalScott Dorman4-Oct-07 11:54 
GeneralRe: Download File From Website With Login Pin
redfish344-Oct-07 12:24
redfish344-Oct-07 12:24 
GeneralRe: Download File From Website With Login Pin
Meysam Mahfouzi21-Sep-08 20:21
Meysam Mahfouzi21-Sep-08 20:21 
Questionparsing a string with DateTime.ParseExact Pin
dfn4-Oct-07 11:11
dfn4-Oct-07 11:11 
AnswerRe: parsing a string with DateTime.ParseExact Pin
Christian Graus4-Oct-07 11:34
protectorChristian Graus4-Oct-07 11:34 
AnswerRe: parsing a string with DateTime.ParseExact Pin
Luc Pattyn4-Oct-07 11:44
sitebuilderLuc Pattyn4-Oct-07 11:44 
AnswerRe: parsing a string with DateTime.ParseExact Pin
Scott Dorman4-Oct-07 11:51
professionalScott Dorman4-Oct-07 11:51 
AnswerRe: parsing a string with DateTime.ParseExact Pin
dfn4-Oct-07 11:59
dfn4-Oct-07 11:59 
JokeRe: parsing a string with DateTime.ParseExact Pin
Anthony Mushrow4-Oct-07 12:30
professionalAnthony Mushrow4-Oct-07 12:30 
QuestionHow to create Expander in WinForm? Pin
tantja4-Oct-07 11:04
tantja4-Oct-07 11:04 
AnswerRe: How to create Expander in WinForm? Pin
Christian Graus4-Oct-07 11:35
protectorChristian Graus4-Oct-07 11:35 
GeneralRe: How to create Expander in WinForm? Pin
tantja4-Oct-07 11:47
tantja4-Oct-07 11:47 
QuestionRe: How to create Expander in WinForm? Pin
TJoe4-Oct-07 12:14
TJoe4-Oct-07 12:14 

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.