PHP Code: 
<?php 
$url 
'https://rapidshare.com/files/322058444511/test.zip'
$regex '@^https?://(?:[\w\d]+\.)*rapidshare\.\w+/files/(\d+)/([^&?#/]+?)(?:$|[&?#/])@i'
preg_match($regex$url$matches);  
/* Array (    
[0] => https://rapidshare.com/files/322058444511/test.zip     
[1] => 322058444511    
[2] => test.zip ) 
*/  
$file_url $matches[0]; $file_id $matches[1]; $file_name $matches[2]; echo  $file_url "\n" $file_id "\n" $file_name "\n";
devNULL Reviewed by devNULL on . Extract links Hi, I'm writing 1 script that take backup of my rapidshare links.. But I have 1 problem: I can't extract from posts ID Links and Filename. I use that: <?php $url = file_get_contents("http://www.domain.com"); $url = strip_tags( $url ); Rating: 5