From: Austin Ziegler Date: 2003-12-23T10:44:43+09:00 Subject: Re: String.strip( string_to_strip ) On Tue, 23 Dec 2003 05:53:23 +0900, Albert Chou wrote: > Thanks for the critique, Austin. Nice code. I also came across a thread > from July on the same subject (while searching for something completely > unrelated, isn't that always the way? ), so sorry for the duplication. > I am wondering whether the regexp anchors could/should be \A, \Z instead > of ^, $ .... Oh, probably. I'm sort of hoping that Ruby regexen will be simplified the way that Perl 6 regexen will be simplified for Ruby2. I should probably write up an RCR for that. I especially like the distinction of ^ for the beginning of line and ^^ for absolute beginning of string... -austin -- austin ziegler * austin@halostatue.ca * Toronto, ON, Canada software designer * pragmatic programmer * 2003.12.22 * 20.43.16