The codes are:
Code: Select all
[podcast]http://www.mydomain.com/radio/x.mp3[/podcast]
and
[podcast]http://www.mydomain.com/multimedia/x.flv[/podcast]But I cant write the Pattern
Please help me
Moderator: General Moderators
Code: Select all
[podcast]http://www.mydomain.com/radio/x.mp3[/podcast]
and
[podcast]http://www.mydomain.com/multimedia/x.flv[/podcast]Code: Select all
/\[podcast\](.*?)\[\/podcast\]/Code: Select all
print_r(pathinfo("http://www.mydomain.com/radio/x.mp3"));
Array
(
[dirname] => http://www.mydomain.com/radio
[basename] => x.mp3
[extension] => mp3
[filename] => x
)Code: Select all
\/([A-Za-z0-9_-]+)\.[A-Za-z0-9]+$