Mega Code Archive

 
Categories / Ruby / File Directory
 

Counting Sentences and Paragraphs

puts "Test code! It works. Does it? Yes.".split(/\.|\?|!/).length