In Xcode 5 I could do search-and-replaces like this:
(regex) find: [([a-zA-Z]+) ([a-zA-Z]+)] replace: .1
In order to switch from syntax like [ble bla] to ble.bla. But when I do these sorts of searches in Xcode 6, I now turn [ble bla] into 0.1.
[ble bla]
ble.bla
0.1
How do I use groups from the find as part of the replace?
Use $# instead of # to refer to the groups.
$#
#
(regex) find: [([a-zA-Z]+) ([a-zA-Z]+)] replace: $0.$1
2.1m questions
2.1m answers
60 comments
57.0k users