<?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"
	>
<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>
	<pubDate>Sat, 10 May 2008 22:14:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Ryan</title>
		<link>http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/#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 '{', '}', and '#' 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;{&#8217;, &#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-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 "_pk"
   end
   my_string = 'joe@example@example.com; walter@example.org'
   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-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-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>
	<item>
		<title>By: Markus</title>
		<link>http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/#comment-37</link>
		<dc:creator>Markus</dc:creator>
		<pubDate>Wed, 23 Jan 2008 09:50:21 +0000</pubDate>
		<guid isPermaLink="false">http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/#comment-37</guid>
		<description>You said "by enclosing the pattern in backslashes", but I think you meant the forward slash in this case?</description>
		<content:encoded><![CDATA[<p>You said &#8220;by enclosing the pattern in backslashes&#8221;, but I think you meant the forward slash in this case?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Php Developer</title>
		<link>http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/#comment-24</link>
		<dc:creator>Php Developer</dc:creator>
		<pubDate>Fri, 18 Jan 2008 08:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/#comment-24</guid>
		<description>Excellent rails regexp tutorial. YOu can find more about regexp here 

http://www.regular-expressions.info/</description>
		<content:encoded><![CDATA[<p>Excellent rails regexp tutorial. YOu can find more about regexp here </p>
<p><a href="http://www.regular-expressions.info/" rel="nofollow">http://www.regular-expressions.info/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in -1.080 seconds -->
