Hi Irfan,

On Sat, 10 Sep 2011 10:23:31 -0700 (PDT)
Irfan Sayed <irfan_sayed2...@yahoo.com> wrote:

> hi,
> 
> i have following string. 
> 
> $val = "11.0.56.10000";
> 
> i need to write regular expression which should match only "56" and print 
> 

There are any number of ways to extract "56" using a regular expression from
this string, and which would you would prefer depends on the general format of
the strings like that that you expect.

Can you describe how these strings look like?

Please reply to the list.

Regards,

        Shlomi Fish

> please suggest 
> 
> regards
> irfan



-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Funny Anti-Terrorism Story - http://shlom.in/enemy

Live as if you were to die tomorrow. Learn as if you were to live forever.
    — http://en.wikiquote.org/wiki/Mohandas_Gandhi (Disputed)

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to