From: Christian Neukirchen Date: 2006-07-25T19:47:03+09:00 Subject: Re: strip tags? "William James" writes: > re = %r{ > < > (?: > # Any characters but > or " . > [^>"] + > | > # Characters within quotes. > # Allow escaped quotes. > " > (?: > # Accept any escaped character. > \\. > | > [^"\\] + > ) * > " > ) * > > > }xm > > print DATA.read.gsub( re, '' ) -- Christian Neukirchen http://chneukirchen.org