From: Tobias Reif Date: 2002-04-11T02:39:49+09:00 Subject: Re: regex: how to negate sequences? Nobu Nakada wrote: > irb(main):002:0> '-f-o>o-bar-->' =~ /.*?(?=-->|\z)/; puts $& > -f-o>o-bar Thx! so I would do irb(main):012:0> '-f-o>o-bar-->' =~ /.*?(?=-->|\z|"|'|\s|\n)/; puts $& -f-o>o-bar nil Can you explain the ?= syntax, or point to it's doc? I know it gets cheesy, but this *is* a great community :) Tobi -- http://www.pinkjuice.com/