hey there this problem stuck me out

how to display url like this

http://www19.domain.com/548ecedd7f87970e986dc19077ef2edd.rar
preg_match_all('#^(?:http://)www[0-99]([^/]+)#i',$url,$parts);
foreach ($parts[1] as $test)
{
  echo 'hehehe '. $test;
}

and the result is:

hehehe 9.domain.com

it just stuck me out

i'm already search the answer at least 5 hours :(

i do not want to parse another url because i can get it, but this problem stuck me out :(

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.