The usual method to do this is to use regular expressions (regexp). There are more versions of this than you can shake a stick at. And it all depends on what exactly you are doing in that language. For RSS feeds you might even want to use a DOM xml parser so that you can always know what the data you are getting is.