1
我想從feedburner feed url獲取feed名稱。我想這樣的:feedburner名稱的正則表達式
$feed = 'http://feeds.feedburner.com/name';
$pattern = '~(?:http|https|)(?::\/\/|)?feeds.feedburner\.com/(?:clip:)?(\w+)~';
preg_match_all($pattern, $feed, $feed_name);
這:
$feed = 'http://feeds.feedburner.com/name';
$pattern = '/http:\/\/feeds.feedburner.com\//';
$feed_name = preg_replace($pattern, '', $feed);
和其他變化,但沒有...