find and replace doesn't supoprt replacing using regrex groups numbers
| Originator: | sash | ||
| Number: | rdar://32703909 | Date Originated: | 06/11/2017 |
| Status: | Open | Resolved: | |
| Product: | Xcode | Product Version: | 9.0 beta (9M136h) |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: It appears that introducing groups into regex search doesn't support replacing groups using "$1" format Steps to Reproduce: I searched for following pattern within the file: self\.(\w+Block) It matched around 10 results In replace text field I typed _$1 which to my understanding should've replaced property access to ivar access, e.g. self.didAnimateBlock should've been replaced with _didAnimateBlock Expected Results: matches should've been replaced with corresponding regex groups Actual Results: all the matches were replaced with _$1 string Version: Xcode 9.0 beta (9M136h)
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!