Hi Wayne, /[^"]+/ works! Maybe you could explain "negated character class"? I thought "^" means "beginning of a line or string". Thank you very much. Tobi Wayne Blair schrieb: > > ----- Original Message ----- > From: "Tobias Reif" <tobiasreif / pinkjuice.com> > To: "ruby-talk ML" <ruby-talk / ruby-lang.org> > Sent: Tuesday, June 12, 2001 3:40 PM > Subject: [ruby-talk:16448] Re: regex: all but one > > > please excuse me, I found the solution: > > .*|\n* > > > > thx, Tobi > > > > Tobias Reif schrieb: > > > > > > Hi; > > > > > > how can I express the following in a regex: > > > "all possible characters, including newlines and carriage returns, but > > > no quotes" > > > > > > this doesn't work: > > > (.|\n|\"{0})* > > > > > > Or maybe just: > > > "all possible characters including newlines" > > > (.|\n)* > > > doesn't work either > > > > > > Tobi > > > > Hi, > > How about a negated character class: > > /[^"]+/m > > Wayne -- Tobias Reif http://www.pinkjuice.com/myDigitalProfile.htm