From: Michal Rokos Date: 2002-04-11T02:13:45+09:00 Subject: Re: regex: how to negate sequences? Hello, In article <3CB468CD.4050401@pinkjuice.com>, Tobias Reif wrote: > In > '-f-o>o-bar-->' > , I need to match the string before > --> > , which is > -f-o>o-bar irb(main):001:0> '-f-o>o-bar-->' =~ /(.*)-->$/ ; puts $1 -f-o>o-bar nil Michal -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michal Rokos Czech Technical University, Prague E-mail:m.rokos@sh.cvut.cz ICQ:36118339 Jabber:majkl@jabber.sh.cvut.cz -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-