sub reduce_to_first_sentence { local $_ = shift; s/([.!?])\s.*/$1/s; $_; }
-- Randal L. Schwartz, Perl hacker
In reply to Re: Re: Truncate a string (news lead?)
by merlyn
in thread Truncate a string (news lead?)
by mountd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |