From: Michael Schuerig Date: 2005-09-29T00:16:44+09:00 Subject: Re: Splitting a string with escapable separator? William James wrote: > Michael Schuerig wrote: >> I'm trying to come up with an *elegant* way to split a string into an >> array at a separator with the additional feature that the separators >> can be escaped. [snip] > class String > def split_escapable( splitter, escaper ) [snip] > end > end Thanks, that appears to work indeed, although I can't claim to understand how or why. Michae. -- Michael Schuerig The more it stays the same, mailto:michael@schuerig.de The less it changes! http://www.schuerig.de/michael/ --Spinal Tap, The Majesty of Rock