From: Michael Brailsford Date: 2002-04-01T14:05:23+09:00 Subject: Re: String#begins?(s) > class String > def begins?(s) > self[0...(s.size)] == s > end > end > > Worthwhile? Maybe I am missing the point, but why do you need something like this? If you want to know the first char in a string just use something like aString[0] == aChar. If you want to know if a sequence starts a string use regex's. -Michael -- Vim is like Emacs without all the typing. (John "Johann" Spetz)