From: "cyber c." Date: 2012-06-07T08:08:50+09:00 Subject: Pattern matching strings Hi, I dont understand why this doesnt work Valid: aecd, efcd, mncd Invalid: if ab comes before cd like abcd Reg exp : /(?!ab)cd/ But this doesn't work. I looked at this tutorial http://www.tutorialspoint.com/ruby/ruby_regular_expressions.htm which says something of this kind should work. -- Posted via http://www.ruby-forum.com/.