<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Search and Replace in Xcode</title>
	<atom:link href="http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/</link>
	<description>On Mac OS X programming</description>
	<lastBuildDate>Sat, 07 Jan 2012 04:23:42 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Paul</title>
		<link>http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/comment-page-1/#comment-73422</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Wed, 14 Sep 2011 13:57:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/#comment-73422</guid>
		<description>Beek, you made my day. I&#039;ve been searching forever.</description>
		<content:encoded><![CDATA[<p>Beek, you made my day. I&#8217;ve been searching forever.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Beek</title>
		<link>http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/comment-page-1/#comment-72830</link>
		<dc:creator>Beek</dc:creator>
		<pubDate>Fri, 19 Aug 2011 04:15:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/#comment-72830</guid>
		<description>Still holds true for Xcode 4.x.  The screen is now a bit different, though.  If you want to use Regular Expressions in Xcode 4, you must first hit the dropdown button next to the magnifying glass in the Find box, select Show Find Options, then select Regular Expressions from the Style dropdown.</description>
		<content:encoded><![CDATA[<p>Still holds true for Xcode 4.x.  The screen is now a bit different, though.  If you want to use Regular Expressions in Xcode 4, you must first hit the dropdown button next to the magnifying glass in the Find box, select Show Find Options, then select Regular Expressions from the Style dropdown.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Lustgarten</title>
		<link>http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/comment-page-1/#comment-40183</link>
		<dc:creator>Paul Lustgarten</dc:creator>
		<pubDate>Wed, 24 Jun 2009 18:17:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/#comment-40183</guid>
		<description>More than two years later, now on Xcode version 3.1.3, and this is still helpful info.

As for the numbering of the capture groups as replacements (of the form backslash-digits), it appears that 0 (zero) yields the *entire* matched string (which seems to be implicitly defined as a capture group), whilst 1 (one) yields the first capture group that is explicitly defined in the match string.

Now, why this isn&#039;t in the Xcode documentation anywhere, even after all these years, is quite a mystery (right next to the original question of why Apple used a different replacement notation than the ICU package uses).</description>
		<content:encoded><![CDATA[<p>More than two years later, now on Xcode version 3.1.3, and this is still helpful info.</p>
<p>As for the numbering of the capture groups as replacements (of the form backslash-digits), it appears that 0 (zero) yields the *entire* matched string (which seems to be implicitly defined as a capture group), whilst 1 (one) yields the first capture group that is explicitly defined in the match string.</p>
<p>Now, why this isn&#8217;t in the Xcode documentation anywhere, even after all these years, is quite a mystery (right next to the original question of why Apple used a different replacement notation than the ICU package uses).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shannon</title>
		<link>http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/comment-page-1/#comment-24880</link>
		<dc:creator>Shannon</dc:creator>
		<pubDate>Thu, 04 Sep 2008 03:02:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/#comment-24880</guid>
		<description>That last post ate the escaped zero, it should show &#039;&#039; in front of the instead.</description>
		<content:encoded><![CDATA[<p>That last post ate the escaped zero, it should show &#8221; in front of the instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shannon</title>
		<link>http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/comment-page-1/#comment-24879</link>
		<dc:creator>Shannon</dc:creator>
		<pubDate>Thu, 04 Sep 2008 03:01:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/#comment-24879</guid>
		<description>This was helpful, but it took me some time to realize that you start counting at zero, not one, so to backtrack / use the text you found, you need to use the  instead.  Thanks for the help.</description>
		<content:encoded><![CDATA[<p>This was helpful, but it took me some time to realize that you start counting at zero, not one, so to backtrack / use the text you found, you need to use the  instead.  Thanks for the help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoffrey</title>
		<link>http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/comment-page-1/#comment-23847</link>
		<dc:creator>Geoffrey</dc:creator>
		<pubDate>Mon, 18 Aug 2008 11:22:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/#comment-23847</guid>
		<description>thanks for this info</description>
		<content:encoded><![CDATA[<p>thanks for this info</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jerome</title>
		<link>http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/comment-page-1/#comment-800</link>
		<dc:creator>jerome</dc:creator>
		<pubDate>Thu, 15 Mar 2007 10:51:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/#comment-800</guid>
		<description>You can use RegexTester to test a NSPredicated-based regex against a string.
http://www.stiefels.net/projects/regextester</description>
		<content:encoded><![CDATA[<p>You can use RegexTester to test a NSPredicated-based regex against a string.<br />
<a href="http://www.stiefels.net/projects/regextester" rel="nofollow">http://www.stiefels.net/projects/regextester</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mr_noodle</title>
		<link>http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/comment-page-1/#comment-553</link>
		<dc:creator>mr_noodle</dc:creator>
		<pubDate>Sun, 28 Jan 2007 16:49:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/#comment-553</guid>
		<description>Jon: That explains the general paranoia I feel whenever doing search and replace. Thanks.

Aaron: My question was not why ICU so much as why not ICU in both the search and replace strings. If they use ICU syntax for the match pattern, you&#039;d think they also use it for the replace pattern. Thanks for the link. Uwe Hoffman also did a similar thing: http://www.codemanic.com/blog-archives/000088.html


Also, for those who only need to do straight regex matching (no capture groups or replacement), NSPredicate (which is also backed by ICU) can be used.</description>
		<content:encoded><![CDATA[<p>Jon: That explains the general paranoia I feel whenever doing search and replace. Thanks.</p>
<p>Aaron: My question was not why ICU so much as why not ICU in both the search and replace strings. If they use ICU syntax for the match pattern, you&#8217;d think they also use it for the replace pattern. Thanks for the link. Uwe Hoffman also did a similar thing: <a href="http://www.codemanic.com/blog-archives/000088.html" rel="nofollow">http://www.codemanic.com/blog-archives/000088.html</a></p>
<p>Also, for those who only need to do straight regex matching (no capture groups or replacement), NSPredicate (which is also backed by ICU) can be used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Evans</title>
		<link>http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/comment-page-1/#comment-552</link>
		<dc:creator>Aaron Evans</dc:creator>
		<pubDate>Sun, 28 Jan 2007 13:44:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/#comment-552</guid>
		<description>Although I don&#039;t know Apple&#039;s direct intentions for using ICU, ICU was most likely chosen because of its wide acceptance as a very high quality, Unicode compliant regular expression library.  My suspicion is that Apple (internally) uses ICU for many tasks other than regular expression matching.  ICU is packaed as a binary on OS X but no headers are included.

I am the author of an Objective-C wrapper for the ICU regular expression library:
http://aarone.org/cocoaicu</description>
		<content:encoded><![CDATA[<p>Although I don&#8217;t know Apple&#8217;s direct intentions for using ICU, ICU was most likely chosen because of its wide acceptance as a very high quality, Unicode compliant regular expression library.  My suspicion is that Apple (internally) uses ICU for many tasks other than regular expression matching.  ICU is packaed as a binary on OS X but no headers are included.</p>
<p>I am the author of an Objective-C wrapper for the ICU regular expression library:<br />
<a href="http://aarone.org/cocoaicu" rel="nofollow">http://aarone.org/cocoaicu</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon H</title>
		<link>http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/comment-page-1/#comment-547</link>
		<dc:creator>Jon H</dc:creator>
		<pubDate>Sat, 27 Jan 2007 23:39:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.noodlesoft.com/blog/2007/01/27/search-and-replace-in-xcode/#comment-547</guid>
		<description>That&#039;s not a &#039;\&#039;, it&#039;s actually a &#039;\fnord&#039;.</description>
		<content:encoded><![CDATA[<p>That&#8217;s not a &#8216;\&#8217;, it&#8217;s actually a &#8216;\fnord&#8217;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

