Here's how I would do it: create a custom cell and a view in that cell to include the text. You will need to use the main text to be able to change parts of the background / text color from your line. After the search, change the background color / color of the text in the drawRect method.
Please see this for more information on Core Text.