in reply to Re: matching a line with ' and "
in thread matching a line with ' and "

No, almut. It might look ugly, but it's the correct output. It might be a typo, but that's what we programmers have to deal with ;-)


s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e

Replies are listed 'Best First'.
Re^3: matching a line with ' and "
by almut (Canon) on Jul 18, 2008 at 09:39 UTC

    Yes, it's correct from a purely syntactic point of view. Still, it's presumably not what the OP had in mind...

    Anyhow, I just wanted to point out that there's a general disambiguation problem, in case the OP needs to allow arbitrary quoted content, which might contain the very separator that's used to split up the individual key-value expressions. It's unclear from the given spec, however, whether that's the case.