Click here to Skip to main content
15,919,341 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
AnswerRe: Pattern Pin
Luc Pattyn9-Mar-11 3:55
sitebuilderLuc Pattyn9-Mar-11 3:55 
GeneralRe: Pattern Pin
musefan4-Apr-11 2:55
musefan4-Apr-11 2:55 
GeneralRe: Pattern Pin
Luc Pattyn4-Apr-11 3:38
sitebuilderLuc Pattyn4-Apr-11 3:38 
GeneralRe: Pattern Pin
musefan4-Apr-11 4:03
musefan4-Apr-11 4:03 
AnswerRe: Pattern Pin
Shahan Ayyub23-Aug-11 11:13
Shahan Ayyub23-Aug-11 11:13 
QuestionRegex in DataAnnotations that can unmatch a input string containing not paired double quote " Pin
stevecwlee28-Feb-11 16:31
stevecwlee28-Feb-11 16:31 
AnswerRe: Regex in DataAnnotations that can unmatch a input string containing not paired double quote " Pin
Captain Ketchup4-Apr-11 1:40
Captain Ketchup4-Apr-11 1:40 
Questionxml regex (for php) Pin
fdsfsa76f7sa611-Nov-10 9:12
fdsfsa76f7sa611-Nov-10 9:12 
AnswerRe: xml regex (for php) Pin
AspDotNetDev11-Nov-10 10:28
protectorAspDotNetDev11-Nov-10 10:28 
GeneralRe: xml regex (for php) Pin
fdsfsa76f7sa611-Nov-10 11:08
fdsfsa76f7sa611-Nov-10 11:08 
QuestionExpression needed Pin
Mazdak5-Sep-10 16:22
Mazdak5-Sep-10 16:22 
AnswerCross-post Pin
Luc Pattyn5-Sep-10 16:54
sitebuilderLuc Pattyn5-Sep-10 16:54 
AnswerRe: Expression needed Pin
OriginalGriff6-Sep-10 1:27
mveOriginalGriff6-Sep-10 1:27 
Questionhtml tag finder Pin
moein.serpico14-Aug-10 23:14
moein.serpico14-Aug-10 23:14 
AnswerRe: html tag finder Pin
PIEBALDconsult15-Aug-10 8:19
mvePIEBALDconsult15-Aug-10 8:19 
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 

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.