From: Simon Strandgaard Date: 2007-01-13T01:33:12+09:00 Subject: Re: DRY gsub... On 1/12/07, benjohn@fysh.org wrote: > > a = d.split(/(?:\r\n|[;, ])/) > > > > Hope that helps. > > Out of interest, what does the ?: do in there? I've googled, etc, honest! (?: ) is a non-capturing group its not necessary here "ab;c,xx\r\nyy zz".split(/\r\n|[;, ]/) #=> ["ab", "c", "xx", "yy", "zz"] -- Simon Strandgaard http://opcoders.com/