in reply to Help with regex for complicated key=value string

I'm a coward; I'd write a parser rather than try to fit the logic into a regex.
  • Comment on Re: Help with regex for complicated key=value string

Replies are listed 'Best First'.
Re^2: Help with regex for complicated key=value string
by mscharrer (Hermit) on Oct 29, 2008 at 18:20 UTC
    Yeah, a parser was also one of my first thoughts when I got confronted with this problem. It would be definitive a cleaner solution. But I'm still have some hope to find a RegEx.
      Well, I know that I could write a regexp, but if I were to spend the half hour to do so, I'm afraid your reply would be "but Python doesn't support 5.10 regexes yet".

      Frankly, I think you're better off asking Python questions in a Python forum.