in reply to Re^4: sorting text into sentences.
in thread sorting text into sentences.

From your description, you want split(/[.;]/, not /.,;/. And I don't see where capital letters would be checked.

Replies are listed 'Best First'.
Re^6: sorting text into sentences.
by chiburashka (Initiate) on Sep 06, 2004 at 09:14 UTC
    nevermind, thanks, that'll do :)

    p.s: i remembered that i don't check the dots and dot-apostroph themselves, so split(/.,;/, $watever) will do just fine.

      I strongly suspect you want \. (match a period), not . (match any character). /.,;/ will match (and remove!) any character followed by , followed by ; -- this doesn't sound anything like what you want. Can you provide sample input and desired output?