regex - Xcode 6 doesn't recognize \1, \2, \# patterns anymore? -
in xcode 5 search-and-replaces this:
(regex) find: \[([a-za-z]+) ([a-za-z]+)\] replace: \0.\1
in order switch syntax [ble bla]
ble.bla
. when these sorts of searches in xcode 6, turn [ble bla]
0.1
.
how utilize groups find part of replace?
use $#
instead of \#
refer groups.
(regex) find: \[([a-za-z]+) ([a-za-z]+)\] replace: $0.$1
regex xcode
No comments:
Post a Comment