<?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: v0.4 Release - Linkifying all Bug Strings</title>
	<atom:link href="http://blog.sidkalra.com/2009/01/v04-release-linkifying-all-bug-strings/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sidkalra.com/2009/01/v04-release-linkifying-all-bug-strings/</link>
	<description></description>
	<pubDate>Wed, 08 Sep 2010 18:45:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gijs</title>
		<link>http://blog.sidkalra.com/2009/01/v04-release-linkifying-all-bug-strings/comment-page-1/#comment-34</link>
		<dc:creator>Gijs</dc:creator>
		<pubDate>Sun, 18 Jan 2009 22:51:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sidkalra.com/?p=277#comment-34</guid>
		<description>Hi Sid,

Again, a comment on this: you can use the "global" flag for regexps (/foo/g or new RegExp("foo", "g") ) to make it match each link. Now, if you use the "string".replace(regexp, function) syntax, and make the function return the replacement, it will globally replace all "bug #1234" occurrences with the right link. Which will work, and doesn't need recursion (however clever that is).

For more info, check out: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/replace#Specifying_a_function_as_a_parameter

Cheers,
Gijs</description>
		<content:encoded><![CDATA[<p>Hi Sid,</p>
<p>Again, a comment on this: you can use the &#8220;global&#8221; flag for regexps (/foo/g or new RegExp(&#8221;foo&#8221;, &#8220;g&#8221;) ) to make it match each link. Now, if you use the &#8220;string&#8221;.replace(regexp, function) syntax, and make the function return the replacement, it will globally replace all &#8220;bug #1234&#8243; occurrences with the right link. Which will work, and doesn&#8217;t need recursion (however clever that is).</p>
<p>For more info, check out: <a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/replace#Specifying_a_function_as_a_parameter" rel="nofollow">https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/replace#Specifying_a_function_as_a_parameter</a></p>
<p>Cheers,<br />
Gijs</p>
]]></content:encoded>
	</item>
</channel>
</rss>
