Codes to use when searching and replacing formatting

As I pointed out on the other thread you posted:

  1. The Mac version doesn’t use any of the versions supported by RegEx 101, it use ICU RegEX; it uses ICU RegEx, and though it is largely compatible with PCRE, there are differences, particularly the capitalisation codes.

  2. I could find no way to get the \L \U capitalisation codes recognised in the Replace field in Scrivener; just as with \t all it does is print either ‘L’ or ‘U’. I don’t know why this is because the codes work in the replace field Nisus Writer Pro, which is based on the same Apple TextKit and also has RTF as its native format. In fact, if I have them both open what’s entered in the Find and Replace fields in one appears in the dialog window in the other. So to me it’s a mystery that something that works in NWP doesn’t work in Scrivener.

Mark