#!/usr/bin/perl use warnings; use strict; my $data; { local $/; $data = <DATA>; } my @paras = split /(?<!\w)\n+/, $data; print join "\n\n", grep { m/"/ } @paras; __DATA__ Paragraph to ignore. Paragraph with "double quoted text" to get. Another paragraph to ignore. "Fully quoted paragraph."
In reply to Re: Extract a paragraph with double quoted text
by eff_i_g
in thread Extract a paragraph with double quoted text
by Coppiete
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |