Click here to Skip to main content
14,695,085 members
Home » Discussions » Regular Expressions
   

Regular Expressions

 
AnswerRe: regular expression to find tax file numbers Pin
Peter_in_27803-Dec-17 20:48
professionalPeter_in_27803-Dec-17 20:48 
GeneralRe: regular expression to find tax file numbers Pin
jschell5-Dec-17 13:06
Memberjschell5-Dec-17 13:06 
AnswerRe: regular expression to find tax file numbers Pin
George Jonsson5-Dec-17 0:25
professionalGeorge Jonsson5-Dec-17 0:25 
GeneralRe: regular expression to find tax file numbers Pin
Copalol5-Dec-17 14:05
MemberCopalol5-Dec-17 14:05 
GeneralRe: regular expression to find tax file numbers Pin
jschell8-Dec-17 7:51
Memberjschell8-Dec-17 7:51 
AnswerRe: regular expression to find tax file numbers Pin
jschell5-Dec-17 13:22
Memberjschell5-Dec-17 13:22 
GeneralRe: regular expression to find tax file numbers Pin
Copalol5-Dec-17 14:32
MemberCopalol5-Dec-17 14:32 
QuestionCorrect Expression For 'Any Character Including Whitespace' Pin
Sonhospa7-May-17 10:23
MemberSonhospa7-May-17 10:23 
Hi all,

I've been fighting with this for hours now, but don't get it to work. I want to strip out some information from an ini-file, which basically looks like this:
[CameraDefinition.1]
Title=Linke Seite
Guid={0ae3f864-da10-4e5a-977c-b9bba47d6f7a}
Description=Ansicht nach links
Origin=Center
It's a standard Windows text file, the sections are separated with two new lines (\r\n\r\n). My regex currently looks like this: "\[CameraDefinition\.(?<camnumber>\d+)\][.|\s]*Guid=(?<guid>\{[0-9A-F\-]*\})"

While the first (CamNumber) and the last part (Guid) return correct results as 'partial match', the critical part seems to be the underlined expression for "everything between the top and the Guid", which might be several lines.

I'd be happy if someone of you helps me solve this... Thank you in advance!
Regards
Mick
SuggestionRe: Correct Expression For 'Any Character Including Whitespace' Pin
Richard MacCutchan7-May-17 22:22
mveRichard MacCutchan7-May-17 22:22 
GeneralRe: Correct Expression For 'Any Character Including Whitespace' Pin
Sonhospa8-May-17 0:12
MemberSonhospa8-May-17 0:12 
GeneralRe: Correct Expression For 'Any Character Including Whitespace' Pin
Richard MacCutchan8-May-17 0:30
mveRichard MacCutchan8-May-17 0:30 
AnswerRe: Correct Expression For 'Any Character Including Whitespace' Pin
Bernhard Hiller8-May-17 0:13
MemberBernhard Hiller8-May-17 0:13 
AnswerRe: Correct Expression For 'Any Character Including Whitespace' Pin
Sonhospa8-May-17 1:24
MemberSonhospa8-May-17 1:24 
GeneralRe: Correct Expression For 'Any Character Including Whitespace' Pin
Richard MacCutchan8-May-17 3:25
mveRichard MacCutchan8-May-17 3:25 
QuestionHow to retain characters preceding a match? Pin
Member 1297660431-Jan-17 16:44
MemberMember 1297660431-Jan-17 16:44 
AnswerRe: How to retain characters preceding a match? Pin
Peter_in_278031-Jan-17 20:27
professionalPeter_in_278031-Jan-17 20:27 
GeneralRe: How to retain characters preceding a match? Pin
Member 1297660431-Jan-17 21:50
MemberMember 1297660431-Jan-17 21:50 
QuestionUsing back references to find data type naming standards violations Pin
Member 124482999-Apr-16 8:06
MemberMember 124482999-Apr-16 8:06 
AnswerRe: Using back references to find data type naming standards violations Pin
George Jonsson16-Apr-16 19:36
professionalGeorge Jonsson16-Apr-16 19:36 
GeneralRe: Using back references to find data type naming standards violations Pin
Member 1244829917-Apr-16 18:20
MemberMember 1244829917-Apr-16 18:20 
AnswerRe: Using back references to find data type naming standards violations Pin
George Jonsson17-Apr-16 20:13
professionalGeorge Jonsson17-Apr-16 20:13 
QuestionRe: Using back references to find data type naming standards violations Pin
Member 1244829919-Apr-16 7:54
MemberMember 1244829919-Apr-16 7:54 
AnswerRe: Using back references to find data type naming standards violations Pin
George Jonsson19-Apr-16 19:52
professionalGeorge Jonsson19-Apr-16 19:52 
GeneralRe: Using back references to find data type naming standards violations Pin
Member 1244829923-Apr-16 5:25
MemberMember 1244829923-Apr-16 5:25 
Questionnegation of an expression Pin
Vijjuuu.28-Feb-15 8:19
MemberVijjuuu.28-Feb-15 8:19 

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.