From: Patrick Zesar Date: 2003-06-25T01:10:16+09:00 Subject: CAN find appropriate regexp ;-)) > str = <<'EOF' > foo "foobar" > bar "foo" "bar"; > fob "foo \"bar\""; > EOF > str.each_line{ |line| > p line.scan(/"(?:[^\\"]|\\.)+"/).collect! {|e| e.sub!(/^"(.*)"$/, '\1')} > } > > It seems to me that works. thanx - that's perfect i wasn't aware of the '?:'-thing - i'm still not sure what it does exactly - but it's working ;-)) thanx again, patrick