in reply to Re^4: Help with regex for complicated key=value stringin thread Help with regex for complicated key=value string
if ($esc) { $esc = 0; } ... elsif ( $char eq '\\' ) { $esc = 1; } [download]
... elsif ( $char eq '\\' ) { } [download]