I have decided to use: $lRow =~ s/\.[^.]+$/./;
Let me try to decode the RegEx:
Look for a period followed by OPTIONAL number of non-period characters followed by the EOL char. Substitue all of these with a single period.
The [^.] solves the greedy problem by making sure there is some non-period characters between things. Thanks!
In reply to Re: Truncating Last Sentence
by FatDog
in thread Truncating Last Sentence
by FatDog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |