Getting a substring in Ruby Apr 17, 2014 Take your pick: string[0...3] string[/.../] Please enable JavaScript to view the comments powered by Disqus.