Sorry for resurrecting this very old thread but the code is near a perfect match for what I need to achieve. Unfortunately I’m totally at a loss with ASObjC data types.
The two changes I need to make to the code are
Use “regularExpression” of NSStringCompareOptions to find matching pieces of text.
Extract the “attributedString” so I can call a function to generate a URL specific to the “attributedString”.
Unfortunately I’m totally out of my depth. Starting just with (2) the attributedString appears to be a pointer to an ASObjC data type. I presume I need cast this to a string, but for the life of me I can’t figure out how.