[thelist] Regular Expression help

Michael Robertson mike at mikeemedia.com
Mon Nov 17 08:27:58 CST 2003


i need a RE that will match a string that is a minimum of 6 characters long and musit contain at least one digit. I'm havin g no luck finding it. I'm certainly not an expert but from what i've read trying to get this I'm wary of using the ?= syntax for compatibilty reasons with older browsers. I'm using this in JavaScript and i read that ?= only works with 1.5. Thanks.

Here is my latest attempt. 
^([a-zA-Z]*[0-9]+|[0-9]+[a-zA-Z]*){6,}



More information about the thelist mailing list