From: Tobias Reif Date: 2002-04-11T01:31:39+09:00 Subject: regex: how to negate sequences? Hi, In '-f-o>o-bar-->' , I need to match the string before --> , which is -f-o>o-bar . How to? irb(main):009:0> '-f-o>o-bar-->' =~ /[^-->]+/ ; puts $& f nil I know why the above doesn't work, but I don't know how to negate a sequence of characters, instead of negating sets/collections. Tobi -- http://www.pinkjuice.com/