Muñoz O, Normann (Valparaíso) wrote:
> Hi, I have a question:
>
> I get from STNDIN a string, for each caracter I check if it belong to a
> predifined group, the problem is that the caracter '0' is in that
> group'. As 0 es false, the match doesn't consider it.
>
> ¿How can I do that so the m
Title: Regexp with 0
Normann,
Mi
surgencia es que utiliza lo siguiente:
CARACTER[$i]
=~/^([0|a|c|0])/
usando
corchetes dira a Perl que este es una clase de caracter que pertenece al grupo
que esta
buscando.
Espero que este le
ayude.
Dispense que not tengo este teclado con
Title: Regexp with 0
Change to an if:
if ( CARACTER[$i] =~ /^(a|b|1|0)/g;
) {
#true
}else {
# false
}
Wags ;)
-Original Message-From: "Muñoz O, Normann (Valparaíso)" [mailto:[EMAIL PROTECTED]]Sent: Friday, September 06, 20