> ^\w*\d\w*\d\w*$ Yes that seems better. As I said, I had not tested my reg exp at all. My purpose was just to introduce the idea that this task should better be done with two reg exps instead of one. Cheers, Volkan.