From: Power One Date: 2009-03-17T00:14:35+09:00 Subject: Re: Question about split method This post is old, but since I'm searching for something else but landed on this post in Google, but I have a better solution for this particular post than other suggestions posted above, so I hope you guy don't mind my resurrection of the post. My solution is this: puts "This is a sentence. This is a sentence! This is a sentence?".strip.split(/\b(\.|\?|\!)\b/) If you try out the code above, it will return: This is a sentence. This is a sentence! This is a sentence? => nil :) Try that in irb! -- Posted via http://www.ruby-forum.com/.