Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/07/2009, 19:34
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 15 años, 10 meses
Puntos: 416
Respuesta: exprecion regular caracteres ?

Código php:
Ver original
  1. <?php
  2.  
  3. if(preg_match("/[^a-z0-9]+/i", "asdasd")) {
  4.     echo "hay al menos un caracter no numerico";
  5. } else {
  6.     echo "no hay al menos un caracter no numerico";
  7. }
  8.  
  9. ?>