sunslayer, don't forget the dollar sign. You don't want it triggered by anything following the number: /^[.!@]n([1-5])$/iS