class String def sentences gsub(/\n|\r/, ' ').split(/\.\s*/) endend%q{Hello. This is a test ofbasic sentence splitting. Iteven works over multiple lines.}.sentences