From: Tobias Reif Date: 2001-06-13T05:01:56+09:00 Subject: [ruby-talk:16453] Re: regex: all but one 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" > To: "ruby-talk ML" > 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