From: Ken Bloom Date: 2008-12-03T10:04:44+09:00 Subject: Re: Substring with "..." On Tue, 02 Dec 2008 12:00:55 -0500, Jose Antonio Parra wrote: > Hi! > > I want to know what is the method to take a string and return a > substring with 20 characters and "..." if the length of the string is > greater, or the complete string if it's shorter than 20 characters. > Thanks all. Are you looking for http://rubyquiz.com/quiz83.html Short But Unique? -- Chanoch (Ken) Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/