You mean something like this:
use warnings; use strict; while(<DATA>){ chomp; print grep{/.+?\!/} split } __DATA__ Mary had a little lamb! , whose fleece! was white! as snow. And everywhere! that Mary went, the lamb was sure! to go.
In reply to Re: pick a word contaning reg-ex
by 2teez
in thread pick a word contaning reg-ex
by keesturam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |