<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in '%r{\.(gif|jpg|png)$}i, What does the i do?' | Pragmatic Forums</title>
    <link>https://forums.pragprog.com/forums/22/topics/385</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>%r{\.(gif|jpg|png)$}i, What does the i do? posted by Sam Ruby @ Fri, 25 Apr 2008 13:19:48 -0000</title>
      <description>&lt;p&gt;It makes the regular expression case insensitive.  With the &lt;code&gt;i&lt;/code&gt; specified, the regular expression will match gif, &lt;span class="caps"&gt;GIF&lt;/span&gt;, Gif, gIf, etc.&lt;/p&gt;</description>
      <pubDate>Fri, 25 Apr 2008 13:19:48 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:22:385:2638</guid>
      <author>Sam Ruby</author>
      <link>https://forums.pragprog.com/forums/22/topics/385</link>
    </item>
    <item>
      <title>%r{\.(gif|jpg|png)$}i, What does the i do? posted by Martin Hawkins @ Fri, 25 Apr 2008 13:15:28 -0000</title>
      <description>&lt;p&gt;v2, p85:&lt;br /&gt;validates_format_of :image_url,&lt;br /&gt;:with =&amp;gt; %r{\.(gif|jpg|png)$}i,&lt;br /&gt;:message =&amp;gt; &amp;#8220;must be a &lt;span class="caps"&gt;URL&lt;/span&gt; for a &lt;span class="caps"&gt;GIF&lt;/span&gt;, JPG, or &lt;span class="caps"&gt;PNG&lt;/span&gt; image&amp;#8221;&lt;/p&gt;


	&lt;p&gt;What does the &amp;#8220;i&amp;#8221; do at the end of the second line? I&amp;#8217;ve tried it without and it seems to run fine.&lt;/p&gt;</description>
      <pubDate>Fri, 25 Apr 2008 13:15:28 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:22:385:2637</guid>
      <author>Martin Hawkins</author>
      <link>https://forums.pragprog.com/forums/22/topics/385</link>
    </item>
  </channel>
</rss>
