in reply to How to extract a sentence?

  1. Define a sentence.
  2. Construct an algorithm to parse text for sentences as defined above.
  3. Convert algorithm into code.

Which of those steps are you stuck on?

Alternatively, skip the wheel-reinvention and use Text::Sentence or Lingua::Sentence or ...