William Black wrote:
> Hello All,
> 
> I need a regular expression to extract only the number from the below
> string.  How is this done?
> 
> x=G1234v00 the number in $1
        if ( /^.(\d+)/ ) {
           # you have a number
           # now if always a G then cyou could change to ^G(\d+)

       }else {
           #you did not have a number

       }

Wags ;)
> 
> Result=1234
> 
> William Black
> 
> _________________________________________________________________
> Stop worrying about overloading your inbox - get MSN Hotmail Extra
> Storage!
> http://join.msn.com/?pgmarket=en-us&page=hotmail/es2&ST=1/go/onm00200362ave/direct/01/



      Any questions and/or problems, please let me know.

      Thanks.

Wags ;)
Int: 9-8-002-2224
Ext: 408-323-4225x2224



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