Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/03/2011, 12:02
Avatar de DeeR
DeeR
 
Fecha de Ingreso: diciembre-2003
Ubicación: Santiago
Mensajes: 520
Antigüedad: 20 años, 4 meses
Puntos: 17
Respuesta: buscar dos caracteres en cadena

A ver veo que tu expresión regular válida si hay uno o más puntos y luego una ,

Entonces la expresión compatible para el módule PCRE sería algo como lo siguiente

Código PHP:
<?php

$text1 
"I'm a string ...   .,  .... "
$text2 "I'm a other string :::::::: ";

        if ( 
preg_match"/(\.)+,/" $text1   )  )
                echo 
"text1 :)\n";

        if ( 
preg_match"/(\.)+,/" $text2   )  )
                echo 
"text2 :)\n";