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/.