<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>InfoSauce: Category Ruby</title>
    <link>http://blog.infosauce.com/articles/category/ruby</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Ruby Conveniences</title>
      <description>&lt;p&gt;Unbeknownst to me, there�s a quick way of doing a match &amp;amp; replace on a string in Ruby using just the brackets: (page 588 in the Ruby Book)&lt;/p&gt;

&lt;code style="font-size: 12px;"&gt;a = "bla bla bla"&lt;/code&gt;&lt;br&gt;
&lt;code style="font-size: 12px;"&gt;a[/a/i]="A"&lt;/code&gt;&lt;br&gt;
&lt;code style="font-size: 12px;"&gt;a =&amp;amp;gt; "blA bla bla"&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
Unfortunately it only does one replace instead of a global replace, but I don�t know enough about RegExp�s now to know if there�s a way to do a global replace with this?
</description>
      <pubDate>Wed, 01 Feb 2006 23:49:00 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:16244861-2b0a-48d0-97a9-2aae95529195</guid>
      <author>Tieg Zaharia</author>
      <link>http://blog.infosauce.com/articles/2006/02/01/ruby-conveniences</link>
      <category>Ruby</category>
    </item>
  </channel>
</rss>
