Click here to Skip to main content
15,796,102 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
AnswerRe: html tag finder Pin
Hiren solanki17-Dec-10 1:40
Hiren solanki17-Dec-10 1:40 
QuestionDifferences between matches with same RegEx [modified] Pin
RichardGrimmer6-Aug-10 1:00
RichardGrimmer6-Aug-10 1:00 
AnswerRe: Differences between matches with same RegEx Pin
Peter_in_27806-Aug-10 3:22
professionalPeter_in_27806-Aug-10 3:22 
GeneralRe: Differences between matches with same RegEx - RESOLVED Pin
RichardGrimmer8-Aug-10 23:53
RichardGrimmer8-Aug-10 23:53 
QuestionEven Expresso couldn't help me with this RegEx - Can You? Pin
Sonhospa30-Jul-10 8:19
Sonhospa30-Jul-10 8:19 
AnswerRe: Even Expresso couldn't help me with this RegEx - Can You? Pin
Luc Pattyn30-Jul-10 8:57
sitebuilderLuc Pattyn30-Jul-10 8:57 
NewsPartially resolved: Even Expresso couldn't help me with this RegEx - Can You? Pin
Sonhospa31-Jul-10 2:06
Sonhospa31-Jul-10 2:06 
GeneralRe: Partially resolved: Even Expresso couldn't help me with this RegEx - Can You? Pin
Luc Pattyn31-Jul-10 3:24
sitebuilderLuc Pattyn31-Jul-10 3:24 
Michael,

I'm not really a regex expert, but I would tackle your problem with two regex and two foreach; the first regex would locate groups, the second would parse the key=value pairs within a group. I've never seen this done with a single regex.

BTW: I don't like your \r\n stuff at all. One normally uses the symbols for start-of-line (^) and end-of-lin ($)e, avoiding problems with matching things on the first line and last line (your input may or may not end on \r or \r\n).

FYI: I have some similar regex stuff in my article CP Vanity[^] which scrapes some of the CodeProject web pages. Similiar meaning two regexes, two foreach loops.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


AnswerRe: Even Expresso couldn't help me with this RegEx - Can You? Pin
PIEBALDconsult12-Aug-10 19:07
professionalPIEBALDconsult12-Aug-10 19:07 
AnswerRe: Even Expresso couldn't help me with this RegEx - Can You? Pin
Luc Pattyn12-Aug-10 19:20
sitebuilderLuc Pattyn12-Aug-10 19:20 
GeneralRe: Even Expresso couldn't help me with this RegEx - Can You? Pin
PIEBALDconsult12-Aug-10 19:23
professionalPIEBALDconsult12-Aug-10 19:23 
GeneralRe: Even Expresso couldn't help me with this RegEx - Can You? Pin
AspDotNetDev23-Aug-10 13:37
protectorAspDotNetDev23-Aug-10 13:37 
GeneralRe: Even Expresso couldn't help me with this RegEx - Can You? Pin
AspDotNetDev23-Aug-10 13:44
protectorAspDotNetDev23-Aug-10 13:44 
QuestionAs black as night. Pin
LunaticFringe26-Jul-10 17:50
LunaticFringe26-Jul-10 17:50 
AnswerRe: As black as night. Pin
PIEBALDconsult26-Jul-10 18:59
professionalPIEBALDconsult26-Jul-10 18:59 
GeneralRe: As black as night. Pin
LunaticFringe26-Jul-10 19:24
LunaticFringe26-Jul-10 19:24 
GeneralRe: As black as night. Pin
Roger Wright6-Oct-10 17:00
professionalRoger Wright6-Oct-10 17:00 
GeneralRe: As black as night. Pin
Luc Pattyn6-Oct-10 17:20
sitebuilderLuc Pattyn6-Oct-10 17:20 
GeneralRe: As black as night. Pin
Roger Wright6-Oct-10 20:29
professionalRoger Wright6-Oct-10 20:29 
Questionanother one Pin
Luc Pattyn26-Jul-10 12:38
sitebuilderLuc Pattyn26-Jul-10 12:38 
AnswerRe: another one Pin
PIEBALDconsult26-Jul-10 16:01
professionalPIEBALDconsult26-Jul-10 16:01 
GeneralRe: another one Pin
Luc Pattyn26-Jul-10 16:23
sitebuilderLuc Pattyn26-Jul-10 16:23 
GeneralRe: another one Pin
PIEBALDconsult26-Jul-10 16:30
professionalPIEBALDconsult26-Jul-10 16:30 
Generalwrong forum. Pin
Luc Pattyn26-Jul-10 17:01
sitebuilderLuc Pattyn26-Jul-10 17:01 
GeneralRe: wrong forum. Pin
PIEBALDconsult26-Jul-10 17:23
professionalPIEBALDconsult26-Jul-10 17:23 

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.