NSRegularExpression

Currently, the table of RSSItems shows each item’s title, and this title is an NSString that consists of the name of the subforum, the title of the post, and the name of the author:

G​e​n​e​r​a​l​ ​B​o​o​k​ ​D​i​s​c​u​s​s​i​o​n​s​ ​:​:​ ​B​N​R​ ​B​o​o​k​s​ ​:​:​ ​R​e​p​l​y​ ​b​y​ ​E​v​e​r​y​o​n​e​

It would be easier to browse posts if the table showed just the titles of the posts. To accomplish this, we need to parse the full item title, grab the string between the set of double colons, and set the title of each RSSItem to be just this string.

In RSSChannel.h, declare a new method that will eventually do these things.

@​i​n​t​e​r​f​a​c​e​ ​R​S​S​C​h​a​n​n​e​l​ ​:​ ​N​S​O​b​j​e​c​t​ ​<​N​S​X​M​L​P​a​r​s​e​r​D​e​l​e​g​a​t​e​>​ ...

Get iOS Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.