To focus on the flummoxing part, you're talking about whenever a lowercase letter is immediately followed by an uppercase letter (with nothing in between)?
did
work for you?@sentences=split([.!?\L], $text);
First off I think you'd need regexp slashes around the brackets to make sure you're talking about a character class, which will make sure that Perl interprets the . and ? literally. Secondly, I don't understand how \L works within a character class, especially when not followed by \E.
_________________________________________________________________________________
I like computer programming because it's like Legos for the mind.
In reply to Re: Using punctuation to split a text
by OfficeLinebacker
in thread Using punctuation to split a text
by UrbanHick
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |