Click here to Skip to main content
15,881,413 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
AnswerRe: html tag finder Pin
OriginalGriff15-Aug-10 8:31
mveOriginalGriff15-Aug-10 8:31 
GeneralRe: html tag finder Pin
AspDotNetDev26-Sep-10 9:29
protectorAspDotNetDev26-Sep-10 9:29 
AnswerRe: html tag finder Pin
AspDotNetDev26-Sep-10 9:28
protectorAspDotNetDev26-Sep-10 9:28 
AnswerRe: html tag finder Pin
Hiren solanki17-Dec-10 0:40
Hiren solanki17-Dec-10 0:40 
QuestionDifferences between matches with same RegEx [modified] Pin
RichardGrimmer6-Aug-10 0:00
RichardGrimmer6-Aug-10 0:00 
AnswerRe: Differences between matches with same RegEx PinPopular
Peter_in_27806-Aug-10 2:22
professionalPeter_in_27806-Aug-10 2:22 
GeneralRe: Differences between matches with same RegEx - RESOLVED Pin
RichardGrimmer8-Aug-10 22:53
RichardGrimmer8-Aug-10 22:53 
QuestionEven Expresso couldn't help me with this RegEx - Can You? Pin
Sonhospa30-Jul-10 7:19
Sonhospa30-Jul-10 7:19 
Hi all,

it must be a small problem that drives me crazy here...

From a text file like the sample given below, the following regular expression extracts the 'Grp' group well, but the 'Entr' group would always be empty. Maybe someone else can see where my error is? Actually, as a final result I'd also like to extract the entrie's name and its value (i.e. befor/after the "=") into different groups. Are any regex experts around who probably see more?
Dim regex = New Regex("\[(?<Grp>.*)\](?<Entr>.*)

is supposed to give me back the groups and entries in an ini-file like structure, no? It seems as if \[ and \] lead to something which I can't find in any reference. Btw I built the regex with Expresso.
' Sample
[Track]
Latitude=N047° 25' 53.4256"
Longitude=W122° 18' 28.7933"
Altitude=+000432.00

[Options]
Titles=False
Sound=True
Pause=False

Thank you very much in advance,
Michael
AnswerRe: Even Expresso couldn't help me with this RegEx - Can You? Pin
Luc Pattyn30-Jul-10 7:57
sitebuilderLuc Pattyn30-Jul-10 7:57 
NewsPartially resolved: Even Expresso couldn't help me with this RegEx - Can You? Pin
Sonhospa31-Jul-10 1:06
Sonhospa31-Jul-10 1:06 
GeneralRe: Partially resolved: Even Expresso couldn't help me with this RegEx - Can You? Pin
Luc Pattyn31-Jul-10 2:24
sitebuilderLuc Pattyn31-Jul-10 2:24 
AnswerRe: Even Expresso couldn't help me with this RegEx - Can You? Pin
PIEBALDconsult12-Aug-10 18:07
mvePIEBALDconsult12-Aug-10 18:07 
AnswerRe: Even Expresso couldn't help me with this RegEx - Can You? Pin
Luc Pattyn12-Aug-10 18:20
sitebuilderLuc Pattyn12-Aug-10 18:20 
GeneralRe: Even Expresso couldn't help me with this RegEx - Can You? Pin
PIEBALDconsult12-Aug-10 18:23
mvePIEBALDconsult12-Aug-10 18:23 
GeneralRe: Even Expresso couldn't help me with this RegEx - Can You? Pin
AspDotNetDev23-Aug-10 12:37
protectorAspDotNetDev23-Aug-10 12:37 
GeneralRe: Even Expresso couldn't help me with this RegEx - Can You? Pin
AspDotNetDev23-Aug-10 12:44
protectorAspDotNetDev23-Aug-10 12:44 
QuestionAs black as night. Pin
LunaticFringe26-Jul-10 16:50
LunaticFringe26-Jul-10 16:50 
AnswerRe: As black as night. Pin
PIEBALDconsult26-Jul-10 17:59
mvePIEBALDconsult26-Jul-10 17:59 
GeneralRe: As black as night. Pin
LunaticFringe26-Jul-10 18:24
LunaticFringe26-Jul-10 18:24 
GeneralRe: As black as night. Pin
Roger Wright6-Oct-10 16:00
professionalRoger Wright6-Oct-10 16:00 
GeneralRe: As black as night. Pin
Luc Pattyn6-Oct-10 16:20
sitebuilderLuc Pattyn6-Oct-10 16:20 
GeneralRe: As black as night. Pin
Roger Wright6-Oct-10 19:29
professionalRoger Wright6-Oct-10 19:29 
Questionanother one Pin
Luc Pattyn26-Jul-10 11:38
sitebuilderLuc Pattyn26-Jul-10 11:38 
AnswerRe: another one Pin
PIEBALDconsult26-Jul-10 15:01
mvePIEBALDconsult26-Jul-10 15:01 
GeneralRe: another one Pin
Luc Pattyn26-Jul-10 15:23
sitebuilderLuc Pattyn26-Jul-10 15: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.