From: the Bare Date: 2002-07-23T08:05:31+09:00 Subject: Strings and member-operators Hi: I'm looking for a way to strip the quotes (and whitespace) off of a string. Right now, I'm using: class String def stripQuotes s = sub( '^\"', " " ) s.sub!( '\"$', " " ) return s.strip! end end This hardly strikes me as the most elegant way. In particular, a nil is returned if the string is unquoted, and the only way I can see to get around this is by adding more regular expressions to check for the existence of quotes. A problem I'm having is that I can't seem to figure out how to get at the underlying string data (like an array) in a member function. On a related note, and regardless of any suggestions on how to do what I want to do, how does one call a member operator in a member function? Thanks, Cameron