<?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 on: Regular Expressions in Ruby</title>
	<atom:link href="http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/</link>
	<description></description>
	<lastBuildDate>Fri, 27 Jan 2012 15:24:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Regular Expressions in Ruby : Max Ivak Personal Site</title>
		<link>http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/comment-page-1/#comment-51160</link>
		<dc:creator>Regular Expressions in Ruby : Max Ivak Personal Site</dc:creator>
		<pubDate>Wed, 18 Jan 2012 07:43:32 +0000</pubDate>
		<guid isPermaLink="false">http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/#comment-51160</guid>
		<description>[...] - Basic Regexp methods in Ruby and comparsion with PHP functions [...]</description>
		<content:encoded><![CDATA[<p>[...] &#8211; Basic Regexp methods in Ruby and comparsion with PHP functions [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alpha01</title>
		<link>http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/comment-page-1/#comment-36310</link>
		<dc:creator>Alpha01</dc:creator>
		<pubDate>Thu, 06 Oct 2011 04:27:02 +0000</pubDate>
		<guid isPermaLink="false">http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/#comment-36310</guid>
		<description>This is a truly useful post.

Thanks!
-Tony</description>
		<content:encoded><![CDATA[<p>This is a truly useful post.</p>
<p>Thanks!<br />
-Tony</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prog4rammer ALa'a</title>
		<link>http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/comment-page-1/#comment-17561</link>
		<dc:creator>Prog4rammer ALa'a</dc:creator>
		<pubDate>Fri, 29 Oct 2010 14:32:22 +0000</pubDate>
		<guid isPermaLink="false">http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/#comment-17561</guid>
		<description>Thanks for Great Post !</description>
		<content:encoded><![CDATA[<p>Thanks for Great Post !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: php developer</title>
		<link>http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/comment-page-1/#comment-16756</link>
		<dc:creator>php developer</dc:creator>
		<pubDate>Fri, 03 Sep 2010 10:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/#comment-16756</guid>
		<description>iPhone App Developer, PHP Developer, Web Developer / programmer at affordable cost.
http://www.indianic.com/</description>
		<content:encoded><![CDATA[<p>iPhone App Developer, PHP Developer, Web Developer / programmer at affordable cost.<br />
<a href="http://www.indianic.com/" rel="nofollow">http://www.indianic.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simons Blog</title>
		<link>http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/comment-page-1/#comment-11007</link>
		<dc:creator>Simons Blog</dc:creator>
		<pubDate>Tue, 24 Nov 2009 17:54:11 +0000</pubDate>
		<guid isPermaLink="false">http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/#comment-11007</guid>
		<description>&lt;strong&gt;bwin-Mails parsen, diesmal mit Ruby...&lt;/strong&gt;

Wie man bwin-Mails mit PHP parsed hatte ich ja schonmal beschrieben, jedoch habe ich das ganze nun nochmal in Ruby und mit IMAP statt POP3 wiederholt. Nun kann ich jede ungelesene Mail (ohne den Flag &quot;Seen&quot;) abrufen und muss mir keine Sorgen ...</description>
		<content:encoded><![CDATA[<p><strong>bwin-Mails parsen, diesmal mit Ruby&#8230;</strong></p>
<p>Wie man bwin-Mails mit PHP parsed hatte ich ja schonmal beschrieben, jedoch habe ich das ganze nun nochmal in Ruby und mit IMAP statt POP3 wiederholt. Nun kann ich jede ungelesene Mail (ohne den Flag &quot;Seen&quot;) abrufen und muss mir keine Sorgen &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramzi Ferchichi</title>
		<link>http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/comment-page-1/#comment-797</link>
		<dc:creator>Ramzi Ferchichi</dc:creator>
		<pubDate>Wed, 11 Jun 2008 09:04:11 +0000</pubDate>
		<guid isPermaLink="false">http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/#comment-797</guid>
		<description>On the subject of &quot;preg_match_all vs. String#scan&quot;, to achieve the same nesting of values in the $matches array of preg_match_all, add the PREG_SET_ORDER flag.

preg_match_all(&#039;/([a-z0-9_.-]+)@([a-z0-9-]+)\.[a-z.]+/i&#039;, $string, $matches, PREG_SET_ORDER); 

var_export($matches);
//  =&gt; array(
//      array(&#039;joe@example.com&#039;, &#039;joe&#039;, &#039;example&#039;),
//      array(&#039;walter@example.org&#039;, &#039;walter&#039;, &#039;example&#039;)
//  )</description>
		<content:encoded><![CDATA[<p>On the subject of &#8220;preg_match_all vs. String#scan&#8221;, to achieve the same nesting of values in the $matches array of preg_match_all, add the PREG_SET_ORDER flag.</p>
<p>preg_match_all(&#8216;/([a-z0-9_.-]+)@([a-z0-9-]+)\.[a-z.]+/i&#8217;, $string, $matches, PREG_SET_ORDER); </p>
<p>var_export($matches);<br />
//  =&gt; array(<br />
//      array(&#8216;joe@example.com&#8217;, &#8216;joe&#8217;, &#8216;example&#8217;),<br />
//      array(&#8216;walter@example.org&#8217;, &#8216;walter&#8217;, &#8216;example&#8217;)<br />
//  )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/comment-page-1/#comment-189</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Mon, 31 Mar 2008 23:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/#comment-189</guid>
		<description>It is worth adding that you will need to escape a different set of characters on ruby than in php.  For instance the curly braces &#039;{&#039;, &#039;}&#039;, and &#039;#&#039; need to be escaped in ruby because they have special meaning in strings.</description>
		<content:encoded><![CDATA[<p>It is worth adding that you will need to escape a different set of characters on ruby than in php.  For instance the curly braces &#8216;{&#8216;, &#8216;}&#8217;, and &#8216;#&#8217; need to be escaped in ruby because they have special meaning in strings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: junaid</title>
		<link>http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/comment-page-1/#comment-152</link>
		<dc:creator>junaid</dc:creator>
		<pubDate>Wed, 19 Mar 2008 06:15:58 +0000</pubDate>
		<guid isPermaLink="false">http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/#comment-152</guid>
		<description>We can achieve preg_replace_callback functionality in ruby this way
   def my_test_method(matches)
        return &quot;_pk&quot;
   end
   my_string = &#039;joe@example@example.com; walter@example.org&#039;
   str = my_string.gsub(/@([a-z0-9-]+)/){ &#124;match&#124; my_test_method(match) }
    puts str

Thanks for nice article. Its really very helpful to me.
Regards
Junaid malik.</description>
		<content:encoded><![CDATA[<p>We can achieve preg_replace_callback functionality in ruby this way<br />
   def my_test_method(matches)<br />
        return &#8220;_pk&#8221;<br />
   end<br />
   my_string = &#8216;joe@example@example.com; <a href="mailto:walter@example.org">walter@example.org</a>&#8216;<br />
   str = my_string.gsub(/@([a-z0-9-]+)/){ |match| my_test_method(match) }<br />
    puts str</p>
<p>Thanks for nice article. Its really very helpful to me.<br />
Regards<br />
Junaid malik.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: junaid</title>
		<link>http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/comment-page-1/#comment-151</link>
		<dc:creator>junaid</dc:creator>
		<pubDate>Wed, 19 Mar 2008 05:00:01 +0000</pubDate>
		<guid isPermaLink="false">http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/#comment-151</guid>
		<description>Nice article. What is the alternative of preg_replace_callback in ruby?</description>
		<content:encoded><![CDATA[<p>Nice article. What is the alternative of preg_replace_callback in ruby?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek</title>
		<link>http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/comment-page-1/#comment-42</link>
		<dc:creator>Derek</dc:creator>
		<pubDate>Wed, 23 Jan 2008 23:49:53 +0000</pubDate>
		<guid isPermaLink="false">http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/#comment-42</guid>
		<description>Markus: Thanks, and fixed</description>
		<content:encoded><![CDATA[<p>Markus: Thanks, and fixed</p>
]]></content:encoded>
	</item>
</channel>
</rss>

