Click here to Skip to main content
15,503,884 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
SuggestionRe: Help with regex HTML form validation Part 2 Pin
Matt T Heffron10-Oct-14 14:18
professionalMatt T Heffron10-Oct-14 14:18 
GeneralRe: Help with regex HTML form validation Part 2 Pin
robwm110-Oct-14 14:19
robwm110-Oct-14 14:19 
GeneralRe: Help with regex HTML form validation Part 2 Pin
robwm111-Oct-14 12:00
robwm111-Oct-14 12:00 
GeneralRe: Help with regex HTML form validation Part 2 Pin
Matt T Heffron13-Oct-14 7:37
professionalMatt T Heffron13-Oct-14 7:37 
GeneralRe: Help with regex HTML form validation Part 2 Pin
robwm113-Oct-14 7:59
robwm113-Oct-14 7:59 
AnswerRe: Help with regex HTML form validation Part 2 Pin
Matt T Heffron10-Oct-14 14:15
professionalMatt T Heffron10-Oct-14 14:15 
GeneralRe: Help with regex HTML form validation Part 2 Pin
robwm110-Oct-14 14:18
robwm110-Oct-14 14:18 
QuestionHelp with regex HTML form validation Pin
robwm19-Oct-14 13:35
robwm19-Oct-14 13:35 
AnswerRe: Help with regex HTML form validation Pin
George Jonsson9-Oct-14 17:26
professionalGeorge Jonsson9-Oct-14 17:26 
SuggestionRe: Help with regex HTML form validation Pin
Richard Deeming9-Oct-14 23:27
mveRichard Deeming9-Oct-14 23:27 
GeneralRe: Help with regex HTML form validation Pin
George Jonsson10-Oct-14 0:14
professionalGeorge Jonsson10-Oct-14 0:14 
GeneralRe: Help with regex HTML form validation Pin
robwm110-Oct-14 7:03
robwm110-Oct-14 7:03 
AnswerRe: Help with regex HTML form validation Pin
Richard Deeming9-Oct-14 23:33
mveRichard Deeming9-Oct-14 23:33 
GeneralRe: Help with regex HTML form validation Pin
robwm110-Oct-14 7:11
robwm110-Oct-14 7:11 
GeneralRe: Help with regex HTML form validation Pin
Richard Deeming10-Oct-14 8:35
mveRichard Deeming10-Oct-14 8:35 
GeneralRe: Help with regex HTML form validation Pin
robwm110-Oct-14 8:39
robwm110-Oct-14 8:39 
GeneralRe: Help with regex HTML form validation Pin
Richard Deeming10-Oct-14 8:47
mveRichard Deeming10-Oct-14 8:47 
QuestionRegular expression date Pin
Member 836446830-May-14 8:27
Member 836446830-May-14 8:27 
QuestionRe: Regular expression date Pin
George Jonsson14-Sep-14 0:21
professionalGeorge Jonsson14-Sep-14 0:21 
AnswerRe: Regular expression date Pin
nagshead_obx9-Oct-14 8:10
nagshead_obx9-Oct-14 8:10 
QuestionRe: Regular expression date Pin
George Jonsson9-Oct-14 17:18
professionalGeorge Jonsson9-Oct-14 17:18 
QuestionRegex to extact lines of code know the start and ending Pin
susanab17-Apr-14 4:25
susanab17-Apr-14 4:25 
QuestionRe: Regex to extact lines of code know the start and ending Pin
Matt T Heffron17-Apr-14 9:14
professionalMatt T Heffron17-Apr-14 9:14 
Question[Solved] Pin
Marco Bertschi20-Mar-14 5:10
professionalMarco Bertschi20-Mar-14 5:10 
Me again. RegEx again.

Problem: I need to parse a string which consists out of Key-Value pairs.
Keys are separated from values by a "=". Values can contain a "=", but they must be escaped as "\=".
Example
Key1=Text And escaped\= More stuff\=is here Key2=Value number2

Of course the second key can contain an escaped \=, too. Long story short: Values can be a normal string (any character), except that the equal sign must be escaped.

So far I got (?<=\s|^)([\w ]+)=(\w \\=*)?(?=[ \w=]|[$]) , but it only keeps ordinary Key=value pairs, cutting of at whitespaces.

Edit: Thanks to Richard, who provided a perfectly suitable solution.
I will never again mention that Dalek Dave was the poster of the One Millionth Lounge Post, nor that it was complete drivel.


modified 20-Mar-14 13:03pm.

GeneralRe: A little help needed... Pin
Marco Bertschi20-Mar-14 6:24
professionalMarco Bertschi20-Mar-14 6:24 

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.