From: "A. S. Bradbury" Date: 2006-06-29T05:10:46+09:00 Subject: Re: remove all illegal chars form string On Wednesday 28 June 2006 20:56, Pete wrote: > just too bad the rdoc is inaccurate and says that delete takes a string > as argument and not a regexp That's actually correct. At first glance I thought it just constructed a regex from the given string (due to its understanding of character ranges). Instead, both String#count and String#delete take this kind of pseudo-regex. Is there a reason it wouldn't make more sense for these methods to take a regexp? Alex