From: Benjamin Billian Date: 2008-07-03T19:47:06+09:00 Subject: Re: yet another regexp problem On 3 Jul., 12:22, shaman wrote: > Srijayanth Sridhar pisze: > >  > /([a-z]{3})[02-9][0-9]{2}\1/ >  > >  > Should work. > > it's not so easy because "vvv133vvv" also should match but your > expression return nil :( The following Expression worked for me: /[a-z]{3}(?:(?:[^1]\d{2})|(?:1[^2]\d)|(?:12[^3]))[a-z]{3}/