Try matching the physical end of the string using \z: /^([A-G])*\z/;.
In reply to Re: I wan't take undef for an answer by GrandFather in thread I wan't take undef for an answer by Anonymous Monk