Jump to content

czheng

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

czheng's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Like a dummy, I didn't pay close enough attention and didn't realize I was going for the CLOSING description tag, not the opening one. The following code works now: [code] $rss_feed = preg_replace("#Tags:(.*?)(?=<\/description>)#", "", $rss_feed); [/code] And I wasn't able to remove the (p) and (b) tags without decoding the HTML. Once I did that, everything was set. Thanks again.
  2. Hey folks. Newcomer here. I've spent the last few days modifying an RSS Reader script I downloaded somewhere, and I've got it running almost exactly how I'd like it. The last thing I'd like to do is, for the following feed([url=http://ma.gnolia.com/rss/full/people/czheng]http://ma.gnolia.com/rss/full/people/czheng[/url]), remove from each ITEM everything from (and including) [code]<b>Tags:[/code] up to (but not including) [code]<description>[/code]. I'm guessing it would be something like: [code]$rss_feed = preg_replace('**what goes here?**', '', $rss_feed);[/code] but of course I need the pattern. Thanks in advance if anyone can help. P.S. How might I also strip out all the following tags? [code]<b></b><p></p>[/code] FYI, I looked at this thread ([url=http://www.phpfreaks.com/forums/index.php/topic,99383.0.html]http://www.phpfreaks.com/forums/index.php/topic,99383.0.html[/url]) but it didn't get me the result I wanted...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.