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, 2002 14:36
To: [EMAIL PROTECTED]
Subject: Regexp with 0


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 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]



**********************************************************
This message contains information that is confidential
and proprietary to FedEx Freight or its affiliates.
It is intended only for the recipient named and for
the express purpose(s) described therein.
Any other use is prohibited.
****************************************************************

Reply via email to