Sedang Disiapkan

Ruby Snippet for String Spliting

I need a snippet of ruby code that will split an article into sentences (keeping punctuation intact).


String = "The dog ran fast! Why did the dog run? I am the dog. The dog said 'bark.' (also should work in paratheses.)"

Should render an array of sentences:

["The dog ran fast!","Why did the dog run?","I am the dog.","The dog said 'bark.'","(also should work in paratheses.)"]

Thanks! Need this ASAP! Should be fast and simple, $30? First person to post it working will get the job.

Kemahiran: Ruby on Rails

Lihat lagi: ruby string sentence, ruby string snippet, ruby snippet, ruby split sentences, ruby split sentence, ruby split string sentences, snippet ruby string, to string, string the, string i, rails job, post of ruby rails, job for ruby on rails, get string c, c get string, ruby snippet string, split string sentences ruby, faster ruby split, ruby array sentences, ruby split string sentenaces, ruby code find sentence, ruby rails split string sentences, rails string snippet, ruby punctuation, ruby string sentences

Tentang Majikan:
( 21 ulasan ) Canton, United States

ID Projek: #270202