From: Kristof Bastiaensen Date: 2004-05-12T08:03:59+09:00 Subject: Strange regexp behaviour in gsub Hi, I am wondering if this is the correct behaviour in gsub: "bab".gsub(/(?!a)ab/, "cd") => "bab" shouldn't that be "bcd"? Also the following: "\nab".gsub(/(?!\w)ab/, "cd") => "\nab" This seems to work "bab".gsub(/(?!c)ab/, "cd") => "bcd" Kristof