From: "yermej@..." Date: 2007-06-29T06:45:06+09:00 Subject: Re: Help with regular expression On Jun 28, 2:49 pm, "Axel Etzold" wrote: > 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 Positive and negative lookahead work in Ruby Regexp. I guess that doesn't help the original poster, but FYI and all. Jeremy