From: Axel Etzold Date: 2007-06-29T04:49:30+09:00 Subject: Re: Help with regular expression I think what you want is what's called negative lookahead. I don't think it's available in Ruby's Regexps anyway, and resorting to Oniguruma isn't an option as you don't want to use Ruby anyway. Maybe you just break it down into more steps as here: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/131694 Or you look for negative lookahead here: http://www.regular-expressions.info/lookaround.html (provided the language you'll eventually use sports this feature at all). Best regards, Axel -- Psssst! Schon vom neuen GMX MultiMessenger geh�rt? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger