Xcode 9 Regular Expression syntax?

Overall: holy crap, great job on Xcode 9. Looks way, way better so far.


There's just one thing I'm scratching my head on, and that involves regular expressions in the source editor. It appears the syntax for inserting captured text into the replacement string has changed; $1, $2, etc. are no longer replaced by captures but instead literally insert a dollar sign into the code editor. What's the new syntax for this? I've tried \1, /1, with no luck so far.


Thanks!

Indeed, congratulations to the Xcode team for delivering a very solid release with many, many very welcome improvements. The editor and indexing improvements alone could have convinced me to use the beta as my default env. I don't think I've ever done that before. Refactoring and build tool improvements sealed the deal.


Now if I could only have my regexp replacements back. I've tried every escape character under the moon, they're all replaced literally. Dropping back to pbpaste | perl | pbcopy is no fun.

Fixed in (at least) beta 5

Xcode 9 Regular Expression syntax?
 
 
Q