Re: Xcode 3.2.1: Regular expression replace is not expanding $1, $2, etc.
Re: Xcode 3.2.1: Regular expression replace is not expanding $1, $2, etc.
- Subject: Re: Xcode 3.2.1: Regular expression replace is not expanding $1, $2, etc.
- From: Chris Espinosa <email@hidden>
- Date: Fri, 9 Oct 2009 13:37:26 -0700
On Oct 9, 2009, at 1:24 PM, Dave Carrigan wrote: If my find pattern is foo(.*) and my replace pattern is baz$1, I would expect foobar to get turned into bazbar but instead it's getting turned into baz$1. Regular _expression_ search option is obviously on or it wouldn't be finding foobar at all.
Am I missing something? And if I'm not missing something, should I file a bug report?
The regex library that Xcode uses implements \n-style replacement patterns, not $n.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden