<?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 for benjamin.ramey</title>
	<atom:link href="http://blog.benramey.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.benramey.com</link>
	<description>Things I and my friends have learned while solving problems.</description>
	<lastBuildDate>Mon, 21 Sep 2009 16:51:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>Comment on Replacing newline characters in VB.NET strings by Brad Gearon</title>
		<link>http://blog.benramey.com/2009/09/01/replacing-newline-characters-in-vb-net/comment-page-1/#comment-18</link>
		<dc:creator>Brad Gearon</dc:creator>
		<pubDate>Mon, 21 Sep 2009 16:51:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.benramey.com/?p=117#comment-18</guid>
		<description>The &quot;newline character&quot; you mentioned doesn&#039;t work because the spaces you see are basically a carriage return and a linefeed character: &quot;\r\n&quot;.  This is specific for the operating system and implementation of the .NET Framework.  Technically the carriage return actually denotes that the cursor should move to the beginning of the current line and the linefeed moves to the next one.  Replacing just the &quot;\n&quot; will obviously leave the carriage return and therefore still format as a new line.  In this case, you must remove both the &quot;\r\n&quot; which you&#039;ve obviously found, but this can be simplified.  This can be done in a few ways.  

First of all you could use the vbCrLf constant like so:
Replace(stringVariable, vbCrLf, &quot;&quot;)
This is exactly Chr(13) + Chr(10) and will also create a variable in memory to use for the empty string.  Thus, another way might be more suitable.

Second you could use Environment.NewLine and String.Empty like so:
Replace(stringVariable, Environment.NewLine, String.Empty)
This will grab the environment specific newline sequence which in this case is &quot;\r\n&quot; and use the existing empty string constant to replace the matches.

I guess the environment specific one to look for would be up to the operating system the value was entered in though, essentially.</description>
		<content:encoded><![CDATA[<p>The &#8220;newline character&#8221; you mentioned doesn&#8217;t work because the spaces you see are basically a carriage return and a linefeed character: &#8220;\r\n&#8221;.  This is specific for the operating system and implementation of the .NET Framework.  Technically the carriage return actually denotes that the cursor should move to the beginning of the current line and the linefeed moves to the next one.  Replacing just the &#8220;\n&#8221; will obviously leave the carriage return and therefore still format as a new line.  In this case, you must remove both the &#8220;\r\n&#8221; which you&#8217;ve obviously found, but this can be simplified.  This can be done in a few ways.  </p>
<p>First of all you could use the vbCrLf constant like so:<br />
Replace(stringVariable, vbCrLf, &#8220;&#8221;)<br />
This is exactly Chr(13) + Chr(10) and will also create a variable in memory to use for the empty string.  Thus, another way might be more suitable.</p>
<p>Second you could use Environment.NewLine and String.Empty like so:<br />
Replace(stringVariable, Environment.NewLine, String.Empty)<br />
This will grab the environment specific newline sequence which in this case is &#8220;\r\n&#8221; and use the existing empty string constant to replace the matches.</p>
<p>I guess the environment specific one to look for would be up to the operating system the value was entered in though, essentially.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Having Fun With sed by jonlabass</title>
		<link>http://blog.benramey.com/2009/07/14/having-fun-with-sed/comment-page-1/#comment-12</link>
		<dc:creator>jonlabass</dc:creator>
		<pubDate>Thu, 13 Aug 2009 21:59:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.benramey.com/?p=113#comment-12</guid>
		<description>More fun includes commenting a line out if you don&#039;t know what the whole line is:

sed &#039;s/.*string/#&amp;/&#039;</description>
		<content:encoded><![CDATA[<p>More fun includes commenting a line out if you don&#8217;t know what the whole line is:</p>
<p>sed &#8216;s/.*string/#&#038;/&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Delete multiple files/folders in multiple depths by jonlabass</title>
		<link>http://blog.benramey.com/2009/05/27/delete-multiple-filesfolders-in-multiple-depths/comment-page-1/#comment-2</link>
		<dc:creator>jonlabass</dc:creator>
		<pubDate>Wed, 08 Jul 2009 19:50:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.benramey.com/?p=93#comment-2</guid>
		<description>You can also accomplish the same thing with find:

find ./ -name &quot;.svn&quot; -exec rm -r {} \;</description>
		<content:encoded><![CDATA[<p>You can also accomplish the same thing with find:</p>
<p>find ./ -name &#8220;.svn&#8221; -exec rm -r {} \;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
