From: Shashank Date Date: 2002-11-15T12:22:06+09:00 Subject: Re: regex help "why the lucky stiff" wrote in message news:20021114155331.GA7742@rysa.inetz.com... > For the outcome you'd like: > > quote1_re = /(?:'((?:''|[^'])+)'|(\S+))/ > > str.scan( quote1_re ).flatten.compact > ==>["Here", "I", "have", "two ''quoted'' matches", "and", > "here''s the second", "."] Great ! > Definitely a lot slower. Speed is not an issue (yet). > You could probably reduce it further, but it's enough to get you started. You bet ! Thanks a lot _why ...