From: David Alan Black Date: 2001-08-14T05:13:11+09:00 Subject: [ruby-talk:19653] Re: String#substr Hello -- On Tue, 14 Aug 2001, Sean Chittenden wrote: > Perl/C/PHP have substr.... does the ruby equiv > exist outside of the use of regexp's? Used with > String#index, I'd think this method would be really > useful. It surprises me that I haven't seen it > referenced/used anywhere and that's actually half of > why I'm asking: did I miss this functionality > someplace under a different name? I don't think so, > but I'm not 100% sure. How have other people dealt w/ > this? Is there an external module that implements this > functionality someplace? Are there plans to include > it in 1.7? -sc Have a look at String#slice[!] David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav