One way:
sub dequote { my $x = $_[0]; $x =~ s/!(.)/$1/sg; return $x; } my @fields = map dequote($_), /\G((?:[^!;]+|!.)*)(?:;|\z)/sg;
In reply to Re: split on delimiter unless escaped
by ikegami
in thread split on delimiter unless escaped
by yrp001
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |