I'm gonna try and create a simple iOS text parser, nothing complicated at all, I need it to be customisable, thats the reason I'm attempting this. A markdown parser is great, but its meant as a publishing tool and is too extensive. I want something very similar in concept, Forexample, Consider a text file with: Code: A paragraph with with title with maybe a couple of lines without a title. Title ----- A paragraph with a title. Title ----- A paragraph with a title, this also includes bullet list. 1. item0 2. item1 3. item2 Basically there are three "para" items in the above text file. I want to each of them parsed and added into an Array. My question is, whats the best way to parse these items? How can I: 1. Separate each of those paras into items. 1. Check if item has a "title" 2. If it does, Separate the "Title" and paragraph text in each of those items. Any comments is very very appreciated.