in reply to Re^2: regex for strings with escaped quotes
in thread regex for strings with escaped quotes
$str =~ /(?:(?|(?:\")(?:[^\\\"]*(?:\\.[^\\\"]*)*)(?:\")))/;
It's missing the capture group that I added: /($RE{delimited}{-delim=>'"'})/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: regex for strings with escaped quotes
by morgon (Priest) on Feb 12, 2019 at 16:35 UTC | |
by haukex (Archbishop) on Feb 12, 2019 at 16:47 UTC | |
by morgon (Priest) on Feb 12, 2019 at 17:11 UTC |