From: Kevin Date: 2011-05-17T11:47:52+09:00 Subject: Re: Generate random string matching specific pattern and length Thank you everyone. @Chad: Yes I do need the dashes in the string. I will probably incorporate your other suggestion with respect to letting the regex check the overall length as well @Chris: That definitely looks like it might do the trick. While writing my original message I had wondered if such a thing existed, and what do you know, it did.