Problema 1.
<html>
<head>
</head>
<body>
<script type="text/javascript">
var dato=prompt('Ingrese nombre del día de la semana y su número:','');
var patron=/[lunes|martes|miercoles|jueves|viernes|sabado|domingo]\s\d{1,2}$/;
if (patron.test(dato))
document.write('correcto');
else
document.write('formato incorrecto');
</script>
</body>
</html>
Retornar al menu |