From: Tobias Reif Date: 2002-04-11T02:19:43+09:00 Subject: Re: regex: how to negate sequences? Michal Rokos wrote: > irb(main):001:0> '-f-o>o-bar-->' =~ /(.*)-->$/ ; puts $1 I know, thx. I'm sorry, but I omitted important info: I also need to negate other seqences or characters: urls = s.scan(/http[^\s"'\n]+/) This works, but the sources are not only HTML, so one match is http://beez.sourceforge.net--> . How to insert --> into the above regex; as a sequence? So that URLs can still contain '-'s? Tobi -- http://www.pinkjuice.com/