• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to use regular expressions in XCode Find/Replace
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use regular expressions in XCode Find/Replace


  • Subject: Re: How to use regular expressions in XCode Find/Replace
  • From: Paul Summermatter <email@hidden>
  • Date: Wed, 12 Aug 2009 12:11:19 -0400

Fritz et al,

	Thanks very much for the tip.  This will help me a lot.

Along similar lines, other IDEs have this concept of Find and Replace with a Preserve Case option. Let me explain with an example. Let's say I have code like:

static NSString *BUYER_DEFAULT_NAME;
NSString *buyerName;

I can do a preserve case find/replace and change buyer to seller, such that I end up with:

static NSString *SELLER_DEFAULT_NAME;
NSString *sellerName;

Can the same thing be done in XCode? If so, I haven't been able to find it/figure it out.

Regards,
Paul

On Aug 11, 2009, at 1:47 PM, Fritz Anderson wrote:

On 11 Aug 2009, at 11:51 AM, Paul Summermatter wrote:

Either I'm doing something wrong or XCode doesn't recognize the $1 replacement parameter, because I end up with @synthesize $1 = _$1;

It doesn't. Use \1 instead.

	— F

--
Fritz Anderson -- Xcode 3 Unleashed: Now in its second printing -- <http://x3u.manoverboard.org/ >



_______________________________________________ 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
References: 
 >How to use regular expressions in XCode Find/Replace (From: Paul Summermatter <email@hidden>)
 >Re: How to use regular expressions in XCode Find/Replace (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: returning from within @synchronized results in warnings
  • Next by Date: Build Error Concerning Frameworks
  • Previous by thread: Re: How to use regular expressions in XCode Find/Replace
  • Next by thread: [Q] Editing CFBundleDisplayName & CFBundleName & Kicking the finder
  • Index(es):
    • Date
    • Thread