• 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: Find-and-replace using regular expressions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Find-and-replace using regular expressions


  • Subject: Re: Find-and-replace using regular expressions
  • From: Joar Wingfors <email@hidden>
  • Date: Tue, 30 Jun 2009 21:37:35 -0700


On 30 jun 2009, at 15.42, Hamish Allan wrote:

I've read that.  It doesn't say what I put in the "replace" field to
use the text that matches "(.*?)" as my replacement text.

Somewhat unintuitively (and contrary to the documentation for ICU, which according to the docs Chris linked to is what XCode uses) you need to use "\1".



Please file bug reports on the documentation if this was not clear!

	<http://developer.apple.com/BugReporter/>

j o a r


_______________________________________________ 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: 
 >Find-and-replace using regular expressions (From: Mark Wagner <email@hidden>)
 >Re: Find-and-replace using regular expressions (From: Chris Espinosa <email@hidden>)
 >Re: Find-and-replace using regular expressions (From: Mark Wagner <email@hidden>)
 >Re: Find-and-replace using regular expressions (From: Hamish Allan <email@hidden>)

  • Prev by Date: Re: GC pros and cons
  • Previous by thread: Re: Find-and-replace using regular expressions
  • Index(es):
    • Date
    • Thread