i want the best regular expression to replace this code
<a href="http:// www.badoobook.com/clips/index.php?page=videos§ion=view&vid_id=100162">
www.badoobook.com/clips/inde......&vid_id=100162
</a>
from string when the number 100162 is variable
this code make what i want but for youtube ,
$badoo = '\\4';
preg_replace('#(<a href="http://www.youtube.com)?/(v/([-|~_0-9A-Za-z]+)|watch\?v\=([-|~_0-9A-Za-z]+)&?.*?)">(http://www.youtube.com)?/(v/([-|~_0-9A-Za-z]+)|watch\?v\=([-|~_0-9A-Za-z]+)&?.*?)<\/a>#i', $badoo , $post['message']);
i want like it for my own url ,
thanks