My code is this:
description = contents.match(/===========(.*?)What's New in this Version/m)[1].strip
The code runs fine but now everything after the single quote is in blue and I need a single quote to end it. But where would I put it or how would I escape it? I tried putting a backslash before the single quote but that doesn’t change anything.
To work around the shortcomings of the Xcode syntax highlighter, you can replace the single quote with the octal escape code for that character:
PS. You can also shorten the start of your regex a bit: