in reply to Re^3: Help with regex for complicated key=value string
in thread Help with regex for complicated key=value string

$esc is used:
if ($esc) { $esc = 0; } ... elsif ( $char eq '\\' ) { $esc = 1; }
and "\\," is handled quite well in my tests.

Do I miss here something?

Replies are listed 'Best First'.
Re^5: Help with regex for complicated key=value string
by ikegami (Patriarch) on Oct 29, 2008 at 19:45 UTC
    Nevermind. I wrongly thought
    if ($esc) { $esc = 0; } ... elsif ( $char eq '\\' ) { $esc = 1; }
    was identical to
    ... elsif ( $char eq '\\' ) { }