<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: Sbnet's Code Snippets</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 25 Jul 2008 17:08:49 GMT</pubDate>
    <description>DZone Snippets: Sbnet's Code Snippets</description>
    <item>
      <title>email validation regex</title>
      <link>http://snippets.dzone.com/posts/show/4294</link>
      <description>&lt;code&gt;&lt;br /&gt;/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/ 		&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 12 Jul 2007 13:02:21 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4294</guid>
      <author>sbnet (Stephane BRUN)</author>
    </item>
    <item>
      <title>Test if called from XMLHttpRequest</title>
      <link>http://snippets.dzone.com/posts/show/4291</link>
      <description>&lt;code&gt;&lt;br /&gt;if($_SERVER["HTTP_X_REQUESTED_WITH"] == 'XMLHttpRequest')&lt;br /&gt;{&lt;br /&gt;  // Called from XMLHttpRequest&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 12 Jul 2007 11:45:42 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4291</guid>
      <author>sbnet (Stephane BRUN)</author>
    </item>
    <item>
      <title>using Rails env in a ruby script</title>
      <link>http://snippets.dzone.com/posts/show/4282</link>
      <description>&lt;code&gt;&lt;br /&gt;RAILS_ENV = ARGV[0] || 'development'&lt;br /&gt;require File.dirname(__FILE__) + '/../config/environment'&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 10 Jul 2007 06:51:56 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4282</guid>
      <author>sbnet (Stephane BRUN)</author>
    </item>
  </channel>
</rss>
