http://www.perlmonks.org?node_id=269464


in reply to Re: list-tags don't always work
in thread list-tags don't always work

That would have been easy.

But see for yourself. Here is the code, directly pasted from my post

/^"((?:[^"\\]|\\.)*)"$/$1/

^"
matches your field's quotechar at the start of the field
(...)
will "remember" what was matched inside the quotes
(?:...)*
This will match anything in place of the ... and tells the parser that it may apear as often as possible. Even zero times
[^"\\]
will match any character but " and \
|
is an alternative. Either the left or the right part has to match
\\.
Will match any "escaped" character
"$
again your quotechar but now at the end