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 acentos.
Pregunta: Donde esta su negocia - cual
pais?
-----Original Message-----
From: "Muñoz O, Normann (Valparaíso)" [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 9:44 AM
To: [EMAIL PROTECTED]
Subject: Regexp with 0Hi, 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 match take it as a caracter an not as false?
CARACTER[$i] =~/^(a|b|1|0)/g;
Thanks.
ATTE:
Normann Muñoz Oyarzún.
Administrador de Sistemas
El Mercurio de Valparaíso S.A.P.
264188 - 204189
[EMAIL PROTECTED]