From: Joel VanderWerf Date: 2007-06-15T11:48:42+09:00 Subject: Re: lose the first character Daniel DeLorme wrote: > Colin Summers wrote: >> r = r.reverse.chop.reverse # remove the first character >> >> That works, but I bet there's a nicer method. What do people use? I >> thought there would be a pohc method (chop, in reverse). > > if you want to lose the first *character* try r[/./m]="" Or, non-destructively, r = r[/.(.*)/m,1] -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407