User Input with digits and letters?

User Input with digits and letters?

Hello,

i have this code:

if (!(input.Galileo.toString().matches("^\d{3,4}$")))
{
    alert "Office ID Galileo should be between 3 and 4";
    //
    cancel submit;
}

but it only work with numbers, how can i get him with letters and numbers?

regards
Carsten