revision: lhoward's right in that it should be \s* instead of \s+.while (<>) { $_ = ucfirst; s/([!.?])(\s+)(\w)/$1$2\U$3/g; print; }
In reply to Re: How do i capitalise sentences?
by visnu
in thread How do i capitalise sentences?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |