Hi Akinleye,

On Wed, 13 Jul 2011 16:53:35 +0100
AKINLEYE <damola.akinl...@gmail.com> wrote:

> please I need  to split a bunch of URL into their respective domain name
> like abcd.com  , it path direcory like /~bert/build/ , it's Argument
> constitutent like uid =1
> 
> Take for example
> msprogram.cn/update/ld.php?ld.php&id=1936&rs=1765405346&cc=0&uid=1
>  I need the first match to be mspgroam.cn
> The Directory to be /update/
> The File should be ld.php
> 
> and argument should be a bunch of v=1 ,rs=1765405346 , cc=0  uid=1
> 

For parsing URLs please see:

http://beta.metacpan.org/release/URI

Please do not do it using regular expressions.

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
"Humanity" - Parody of Modern Life - http://shlom.in/humanity

Real programmers don’t write workarounds. They tell their users to upgrade
their software.

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