<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Easy Ruby On Rails Programming &#187; string escape sequences</title>
	<atom:link href="http://easyrubyonrailsprogramming.com/tag/string-escape-sequences/feed/" rel="self" type="application/rss+xml" />
	<link>http://easyrubyonrailsprogramming.com</link>
	<description>The Place to be to Learn Ruby On Rails</description>
	<lastBuildDate>Sat, 24 Dec 2011 05:30:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Strings (Part 2)</title>
		<link>http://easyrubyonrailsprogramming.com/development/strings-part-2/</link>
		<comments>http://easyrubyonrailsprogramming.com/development/strings-part-2/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 03:54:12 +0000</pubDate>
		<dc:creator>Avatar</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Programming Basics]]></category>
		<category><![CDATA[string escape sequences]]></category>
		<category><![CDATA[string substitution]]></category>

		<guid isPermaLink="false">http://easyrubyonrailsprogramming.com/development/strings-part-2/</guid>
		<description><![CDATA[The types of substitution can be easily seen such as; strings inside a single quote have two consecutive backslashes interpreted as one, a backslash followed by a single quote is interpreted as a single quote and so on and so forth as shown below. &#8216;escape using &#8220;\\&#8221;&#8216; &#62;&#62; escape using &#8220;\&#8221; &#8216;That\&#8217;s right&#8217; &#62;&#62; That&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.boomkat.com/item.cfm%3Fid%3D61772"><img src="/wp-content/uploads/scraped/39.jpg"/></a>
<p>The types of substitution can be easily seen such as; strings inside a single quote have two consecutive backslashes interpreted as one, a backslash followed by a single quote is interpreted as a single quote and so on and so forth as shown below.</p>
<p>&#8216;escape using &#8220;\\&#8221;&#8216;	&gt;&gt;	escape using &#8220;\&#8221;<br />
&#8216;That\&#8217;s right&#8217;		&gt;&gt;	That&#8217;s right</p>
<p>Stings that are double-quoted have the ability to support more escape sequences, such as &#8220;\n&#8221; which denotes a new line character. You can search the web for the full list of these escape sequences. Any Ruby expression can be substituted as a string using the #{<em>expr</em>} sequence. If that expression just happens to be a global variable, class variable or an instance variable, then the braces can be omitted.</p>
<p>&#8220;Seconds/day: #{24*60*60}&#8221;	&gt;&gt; Seconds/day: 86400<br />
&#8220;#{&#8216;Happy!&#8217;*2}Birthday&#8221;		&gt;&gt; Happy! Happy! Birthday<br />
&#8220;This is line #$.&#8221;		&gt;&gt; This is line 3</p>
]]></content:encoded>
			<wfw:commentRss>http://easyrubyonrailsprogramming.com/development/strings-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

