Hmmmm . . .not sure how efficient this is, but this is how I'd do it.
Cheers,$paragraph = shift; @sentences = split /[.!?]/; foreach (@sentences) { last unless /\w/; #Make sure that we have words print unless /^\s*[A-Z]/; }
Light a man a fire, he's warm for a day. Catch a man on fire, and he's warm for the rest of his life. - Terry Pratchet
Update:Fixed stupid bug.
In reply to Re: Regular Expressions
by erikharrison
in thread Match non-capitalized words at the beginning of each sentence
by WarrenBullockIII
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |