From: John Butler Date: 2010-07-13T05:56:00+09:00 Subject: regex to match similar strings Hi, Im writing some validation code the basically make sure a users login is not too similar to their password. I was thinking a regular expression to match similarities and if they are alike then make the user change their password. This doesnt have to be bullet proof just enough to really say if someones username is bobbysmith then their password cant be bobbysmith7 or bobbysmi7 Anyone got a solution, is it possible to do this with a regular expression or will it be some ruby code ina loop.... JB -- Posted via http://www.ruby-forum.com/.