Ver originalvar reg = new RegExp("^[^\\d][\\w\\d]{" + (min - 1) + "," + (max - 1) + "}$");alert(reg.test("cadena"))