Using NSRegularExpression with NSAttributedString

I think, it is a very convenient way to use regular expressions to find a range for applying attributes to NSAttributedString. This is how I did it:

I was searching for a list of available attributes and didn’t find them in a class reference’s first page. So I decided to post here information on that.

Attributed strings support the following standard attributes for text.

Standart Attributes

NSAttributedString programming guide

A full class reference is here

 

Leave a Reply

Your email address will not be published. Required fields are marked *