radhika wrote:
> Hi,
> My string looks like this B=99.99+
> 
> I have split this to just get the 99.99+ part.
> How can I get the $1 to be numeric and $2 to just contain the +.
> 
        Assume could be minus so did for plus or minus and has the b= or 
whatever:

        if ( /^.=([^+\-]+)(.)/ ) {
                $MyNbr = $1;
                $MySign = $2;
       }else {
        # no number or sign
         }

Wags ;)

> Thanks,
> Radhika
> 
> --
> It is all a matter of perspective. You choose your view by choosing
> where to stand.
> Larry Wall
> ---



*******************************************************
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.
*******************************************************


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to