因此,我有一个RSS提要,其中包含每个条目的变体。我想要做的只是获取包含特定部分文本的条目。从RSS提要中提取特定条目[PHP]
例如:
<item>
<title>RADIO SHOW - CF64K - 05-20-10 + WRAPUP </title>
<link>http://linktoradioshow.com</link>
<comments>Radio show from 05-20-10</comments>
<pubDate>Thu, 20 May 2010 19:12:12 +0200</pubDate>
<category domain="http://linktoradioshow.com/browse/199">Audio/Other</category>
<dc:creator>n0s</dc:creator>
<guid>http://otherlinktoradioshow.com/</guid>
<enclosure url="http://linktoradioshow.com/" length="13005" />
</item>
<item>
<title>RADIO SHOW - CF128K - 05-20-10 + WRAPUP </title>
<link>http://linktoradioshow.com</link>
<comments>Radio show from 05-20-10</comments>
<pubDate>Thu, 20 May 2010 19:12:12 +0200</pubDate>
<category domain="http://linktoradioshow.com/browse/199">Audio/Other</category>
<dc:creator>n0s</dc:creator>
<guid>http://otherlinktoradioshow.com/</guid>
<enclosure url="http://linktoradioshow.com/" length="13005" />
</item>
我只想显示包含字符串CF64K
结果。虽然这可能是非常简单的正则表达式,但我似乎无法将自己的头脑理解为正确。我总是看起来只能显示字符串“CF64K”,而不是围绕它的东西。
在此先感谢。