Now works on iOS by using regular expressions for tag matching. Rebuilt Xcode project and unit tests.