<?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: Parsing Quoted Strings in Ruby</title>
	<atom:link href="http://mikenaberezny.com/2008/04/28/parsing-quoted-strings-in-ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://mikenaberezny.com/2008/04/28/parsing-quoted-strings-in-ruby/</link>
	<description></description>
	<lastBuildDate>Fri, 01 Jul 2011 12:51:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Taylor Carpenter</title>
		<link>http://mikenaberezny.com/2008/04/28/parsing-quoted-strings-in-ruby/comment-page-1/#comment-142138</link>
		<dc:creator>Taylor Carpenter</dc:creator>
		<pubDate>Mon, 20 Apr 2009 09:04:54 +0000</pubDate>
		<guid isPermaLink="false">http://mikenaberezny.com/?p=155#comment-142138</guid>
		<description>&gt;&gt; s = &quot;a b &quot;c d&quot; e&quot;
&gt;&gt; s += &quot; f &#039;g h&#039; i&quot;
&gt;&gt; s
=&gt; &quot;a b &quot;c d&quot; e f &#039;g h&#039; i&quot;

&gt;&gt; a = s.split(%r{[&quot;&#039;]([^&quot;]*)[&quot;&#039;]&#124;\s})
&gt;&gt; a.delete(&quot;&quot;)
&gt;&gt; a
=&gt; [&quot;a&quot;, &quot;b&quot;, &quot;c d&quot;, &quot;e&quot;, &quot;f&quot;, &quot;g h&quot;, &quot;i&quot;]</description>
		<content:encoded><![CDATA[<p>&gt;&gt; s = &#8220;a b &#8220;c d&#8221; e&#8221;<br />
&gt;&gt; s += &#8221; f &#8216;g h&#8217; i&#8221;<br />
&gt;&gt; s<br />
=&gt; &#8220;a b &#8220;c d&#8221; e f &#8216;g h&#8217; i&#8221;</p>
<p>&gt;&gt; a = s.split(%r{["']([^"]*)["']|\s})<br />
&gt;&gt; a.delete(&#8220;&#8221;)<br />
&gt;&gt; a<br />
=&gt; ["a", "b", "c d", "e", "f", "g h", "i"]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrik N</title>
		<link>http://mikenaberezny.com/2008/04/28/parsing-quoted-strings-in-ruby/comment-page-1/#comment-91303</link>
		<dc:creator>Henrik N</dc:creator>
		<pubDate>Tue, 06 May 2008 08:36:24 +0000</pubDate>
		<guid isPermaLink="false">http://mikenaberezny.com/?p=155#comment-91303</guid>
		<description>Mike: Ooh, full circle. Cool, didn&#039;t try that.</description>
		<content:encoded><![CDATA[<p>Mike: Ooh, full circle. Cool, didn&#8217;t try that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Naberezny</title>
		<link>http://mikenaberezny.com/2008/04/28/parsing-quoted-strings-in-ruby/comment-page-1/#comment-91228</link>
		<dc:creator>Mike Naberezny</dc:creator>
		<pubDate>Mon, 05 May 2008 22:37:40 +0000</pubDate>
		<guid isPermaLink="false">http://mikenaberezny.com/?p=155#comment-91228</guid>
		<description>Good catch.  Interestingly, tagging a photo on Flickr itself with your string of &lt;code&gt;&quot;a&quot;&quot;b&quot;&lt;/code&gt; also results in one tag, &lt;code&gt;ab&lt;/code&gt;.</description>
		<content:encoded><![CDATA[<p>Good catch.  Interestingly, tagging a photo on Flickr itself with your string of <code>"a""b"</code> also results in one tag, <code>ab</code>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrik N</title>
		<link>http://mikenaberezny.com/2008/04/28/parsing-quoted-strings-in-ruby/comment-page-1/#comment-91134</link>
		<dc:creator>Henrik N</dc:creator>
		<pubDate>Mon, 05 May 2008 09:11:48 +0000</pubDate>
		<guid isPermaLink="false">http://mikenaberezny.com/?p=155#comment-91134</guid>
		<description>Note that

  &gt;&gt; Shellwords.shellwords %{&quot;a&quot;&quot;b&quot;}
  =&gt; [&quot;ab&quot;]

though. That makes sense in some contexts (shells) but not in others (Flickr-style tag parsing) where you might be tempted to use this lib.

See my post http://henrik.nyh.se/2008/03/flickr-style-tag-splitting-in-ruby and the comments for more.</description>
		<content:encoded><![CDATA[<p>Note that</p>
<p>  &gt;&gt; Shellwords.shellwords %{&#8220;a&#8221;"b&#8221;}<br />
  =&gt; ["ab"]</p>
<p>though. That makes sense in some contexts (shells) but not in others (Flickr-style tag parsing) where you might be tempted to use this lib.</p>
<p>See my post <a href="http://henrik.nyh.se/2008/03/flickr-style-tag-splitting-in-ruby" rel="nofollow">http://henrik.nyh.se/2008/03/flickr-style-tag-splitting-in-ruby</a> and the comments for more.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

