<?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: Replacing URLs with links&#8230; halp?</title>
	<atom:link href="http://www.tikirobot.net/wp/2010/01/26/replacing-urls-with-links-halp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tikirobot.net/wp/2010/01/26/replacing-urls-with-links-halp/</link>
	<description>Mai Tais and Blinky Lights, Ahoy!</description>
	<lastBuildDate>Sat, 28 Jan 2012 06:57:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: rajbot</title>
		<link>http://www.tikirobot.net/wp/2010/01/26/replacing-urls-with-links-halp/comment-page-1/#comment-34670</link>
		<dc:creator>rajbot</dc:creator>
		<pubDate>Thu, 25 Feb 2010 19:34:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.tikirobot.net/wp/?p=2973#comment-34670</guid>
		<description>Thanks AGAIN! Updated!!</description>
		<content:encoded><![CDATA[<p>Thanks AGAIN! Updated!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shag</title>
		<link>http://www.tikirobot.net/wp/2010/01/26/replacing-urls-with-links-halp/comment-page-1/#comment-34659</link>
		<dc:creator>shag</dc:creator>
		<pubDate>Tue, 09 Feb 2010 03:46:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.tikirobot.net/wp/?p=2973#comment-34659</guid>
		<description>Ok, here&#039;s a revised regex:

&lt;pre lang=&quot;python&quot;&gt;
    prog = re.compile(r&#039;(?#FQURL)(?:(?#Protocol)(?:(?:ht&#124;f)tp(?:s?)\:\/\/)(?#Username:Password)(?:\w+:\w+@)?(?#Subdomains)(?:(?:[-\w]+\.)*(?#TopLevel Domains)(?:[a-z]+\.?))(?#Port)(?::[\d]{1,5})?\.?(?#Directories)(?:(?:(?:\/(?:[-\w~!$+&#124;.,=]&#124;%[a-f\d]{2})+)+&#124;\/&#124;)+&#124;\?&#124;#)?(?#Query)(?:(?:\?(?:[-\w~!$+&#124;.,*:]&#124;%[a-f\d{2}])+=?(?:[-\w~!$+&#124;.,*:=]&#124;%[a-f\d]{2})*)(?:&amp;(?:[-\w~!$+&#124;.,*:]&#124;%[a-f\d{2}])+=?(?:[-\w~!$+&#124;.,*:=]&#124;%[a-f\d]{2})*)*)*(?#Anchor)(?:#(?:[-\w~!$+&#124;.,*:=]&#124;%[a-f\d]{2})*)?&#124;(?#BareURL)(?#Username:Password)(?:\w+:\w+@)?(?#Subdomains)(?:(?:[-\w]+\.)+(?#TopLevel Domains)(?:com&#124;org&#124;net&#124;gov&#124;mil&#124;biz&#124;info&#124;mobi&#124;name&#124;aero&#124;jobs&#124;museum&#124;travel&#124;[a-z]{2}))(?#Port)(?::[\d]{1,5})?\.?(?#Directories)(?:(?:(?:\/(?:[-\w~!$+&#124;.,=]&#124;%[a-f\d]{2})+)+&#124;\/&#124;)+&#124;\?&#124;#)?(?#Query)(?:(?:\?(?:[-\w~!$+&#124;.,*:]&#124;%[a-f\d{2}])+=?(?:[-\w~!$+&#124;.,*:=]&#124;%[a-f\d]{2})*)(?:&amp;(?:[-\w~!$+&#124;.,*:]&#124;%[a-f\d{2}])+=?(?:[-\w~!$+&#124;.,*:=]&#124;%[a-f\d]{2})*)*)*(?#Anchor)(?:#(?:[-\w~!$+&#124;.,*:=]&#124;%[a-f\d]{2})*)?)&#039;)
&lt;/pre&gt;

that handles this new test case now:

&lt;pre lang=&quot;python&quot;&gt;
print convertLinks(&#039;words with slashes: unread/unregistered\n&#039;)
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Ok, here&#8217;s a revised regex:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">    prog = <span style="color: #dc143c;">re</span>.<span style="color: #008000;">compile</span><span style="color: black;">&#40;</span>r<span style="color: #483d8b;">'(?#FQURL)(?:(?#Protocol)(?:(?:ht|f)tp(?:s?)<span style="color: #000099; font-weight: bold;">\:</span><span style="color: #000099; font-weight: bold;">\/</span><span style="color: #000099; font-weight: bold;">\/</span>)(?#Username:Password)(?:<span style="color: #000099; font-weight: bold;">\w</span>+:<span style="color: #000099; font-weight: bold;">\w</span>+@)?(?#Subdomains)(?:(?:[-<span style="color: #000099; font-weight: bold;">\w</span>]+<span style="color: #000099; font-weight: bold;">\.</span>)*(?#TopLevel Domains)(?:[a-z]+<span style="color: #000099; font-weight: bold;">\.</span>?))(?#Port)(?::[<span style="color: #000099; font-weight: bold;">\d</span>]{1,5})?<span style="color: #000099; font-weight: bold;">\.</span>?(?#Directories)(?:(?:(?:<span style="color: #000099; font-weight: bold;">\/</span>(?:[-<span style="color: #000099; font-weight: bold;">\w</span>~!$+|.,=]|%[a-f<span style="color: #000099; font-weight: bold;">\d</span>]{2})+)+|<span style="color: #000099; font-weight: bold;">\/</span>|)+|<span style="color: #000099; font-weight: bold;">\?</span>|#)?(?#Query)(?:(?:<span style="color: #000099; font-weight: bold;">\?</span>(?:[-<span style="color: #000099; font-weight: bold;">\w</span>~!$+|.,*:]|%[a-f<span style="color: #000099; font-weight: bold;">\d</span>{2}])+=?(?:[-<span style="color: #000099; font-weight: bold;">\w</span>~!$+|.,*:=]|%[a-f<span style="color: #000099; font-weight: bold;">\d</span>]{2})*)(?:&amp;amp;(?:[-<span style="color: #000099; font-weight: bold;">\w</span>~!$+|.,*:]|%[a-f<span style="color: #000099; font-weight: bold;">\d</span>{2}])+=?(?:[-<span style="color: #000099; font-weight: bold;">\w</span>~!$+|.,*:=]|%[a-f<span style="color: #000099; font-weight: bold;">\d</span>]{2})*)*)*(?#Anchor)(?:#(?:[-<span style="color: #000099; font-weight: bold;">\w</span>~!$+|.,*:=]|%[a-f<span style="color: #000099; font-weight: bold;">\d</span>]{2})*)?|(?#BareURL)(?#Username:Password)(?:<span style="color: #000099; font-weight: bold;">\w</span>+:<span style="color: #000099; font-weight: bold;">\w</span>+@)?(?#Subdomains)(?:(?:[-<span style="color: #000099; font-weight: bold;">\w</span>]+<span style="color: #000099; font-weight: bold;">\.</span>)+(?#TopLevel Domains)(?:com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum|travel|[a-z]{2}))(?#Port)(?::[<span style="color: #000099; font-weight: bold;">\d</span>]{1,5})?<span style="color: #000099; font-weight: bold;">\.</span>?(?#Directories)(?:(?:(?:<span style="color: #000099; font-weight: bold;">\/</span>(?:[-<span style="color: #000099; font-weight: bold;">\w</span>~!$+|.,=]|%[a-f<span style="color: #000099; font-weight: bold;">\d</span>]{2})+)+|<span style="color: #000099; font-weight: bold;">\/</span>|)+|<span style="color: #000099; font-weight: bold;">\?</span>|#)?(?#Query)(?:(?:<span style="color: #000099; font-weight: bold;">\?</span>(?:[-<span style="color: #000099; font-weight: bold;">\w</span>~!$+|.,*:]|%[a-f<span style="color: #000099; font-weight: bold;">\d</span>{2}])+=?(?:[-<span style="color: #000099; font-weight: bold;">\w</span>~!$+|.,*:=]|%[a-f<span style="color: #000099; font-weight: bold;">\d</span>]{2})*)(?:&amp;amp;(?:[-<span style="color: #000099; font-weight: bold;">\w</span>~!$+|.,*:]|%[a-f<span style="color: #000099; font-weight: bold;">\d</span>{2}])+=?(?:[-<span style="color: #000099; font-weight: bold;">\w</span>~!$+|.,*:=]|%[a-f<span style="color: #000099; font-weight: bold;">\d</span>]{2})*)*)*(?#Anchor)(?:#(?:[-<span style="color: #000099; font-weight: bold;">\w</span>~!$+|.,*:=]|%[a-f<span style="color: #000099; font-weight: bold;">\d</span>]{2})*)?)'</span><span style="color: black;">&#41;</span></pre></div></div>

<p>that handles this new test case now:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">print</span> convertLinks<span style="color: black;">&#40;</span><span style="color: #483d8b;">'words with slashes: unread/unregistered<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: shag</title>
		<link>http://www.tikirobot.net/wp/2010/01/26/replacing-urls-with-links-halp/comment-page-1/#comment-34658</link>
		<dc:creator>shag</dc:creator>
		<pubDate>Tue, 09 Feb 2010 00:07:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.tikirobot.net/wp/?p=2973#comment-34658</guid>
		<description>Looks like there is a bug: it turned the &#039;unresponded&#039; in

&quot;unread/unresponded&quot;

into a link to /responded ... hmmm ....</description>
		<content:encoded><![CDATA[<p>Looks like there is a bug: it turned the &#8216;unresponded&#8217; in</p>
<p>&#8220;unread/unresponded&#8221;</p>
<p>into a link to /responded &#8230; hmmm &#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajbot</title>
		<link>http://www.tikirobot.net/wp/2010/01/26/replacing-urls-with-links-halp/comment-page-1/#comment-34653</link>
		<dc:creator>rajbot</dc:creator>
		<pubDate>Thu, 04 Feb 2010 23:28:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.tikirobot.net/wp/?p=2973#comment-34653</guid>
		<description>Thanks again, shag! The hashtags should now be linked!

Stupid WP keeps re-inserting the rel=nofollow stuff. I couldn&#039;t find how to turn it off.. will keep looking.</description>
		<content:encoded><![CDATA[<p>Thanks again, shag! The hashtags should now be linked!</p>
<p>Stupid WP keeps re-inserting the rel=nofollow stuff. I couldn&#8217;t find how to turn it off.. will keep looking.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajbot</title>
		<link>http://www.tikirobot.net/wp/2010/01/26/replacing-urls-with-links-halp/comment-page-1/#comment-34652</link>
		<dc:creator>rajbot</dc:creator>
		<pubDate>Thu, 04 Feb 2010 21:52:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.tikirobot.net/wp/?p=2973#comment-34652</guid>
		<description>stupid wordpress is stupid</description>
		<content:encoded><![CDATA[<p>stupid wordpress is stupid</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shag</title>
		<link>http://www.tikirobot.net/wp/2010/01/26/replacing-urls-with-links-halp/comment-page-1/#comment-34651</link>
		<dc:creator>shag</dc:creator>
		<pubDate>Thu, 04 Feb 2010 20:50:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.tikirobot.net/wp/?p=2973#comment-34651</guid>
		<description>yuck, wordpress totally mangled teh python!  lame :-(  that &lt;1 rel nofollow&gt; business should just be &lt;1&gt;</description>
		<content:encoded><![CDATA[<p>yuck, wordpress totally mangled teh python!  lame :-(  that &lt;1 rel nofollow&gt; business should just be &lt;1&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shag</title>
		<link>http://www.tikirobot.net/wp/2010/01/26/replacing-urls-with-links-halp/comment-page-1/#comment-34650</link>
		<dc:creator>shag</dc:creator>
		<pubDate>Thu, 04 Feb 2010 20:47:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.tikirobot.net/wp/?p=2973#comment-34650</guid>
		<description>This should convert the #foo and @bar...

&lt;pre lang=&quot;python&quot;&gt;
#!/usr/bin/python
 
import re
 
def convertTopicsAndTwitterers(str):
    prog = re.compile(r&#039;#(\w+)&#039;)
    str = prog.sub(r&#039;#&lt;a href=&quot;http://twitter.com/search?q=%23\g&lt;1 rel=&quot;nofollow&quot;&gt;&quot;&gt;\g&lt;1&gt;&lt;/a&gt;&#039;, str)
    prog2 = re.compile(r&#039;@(\w+)&#039;)
    return prog2.sub(r&#039;@&lt;a href=&quot;http://twitter.com/\g&lt;1 rel=&quot;nofollow&quot;&gt;&quot;&gt;\g&lt;1&gt;&lt;/a&gt;&#039;, str)
 
#
print convertTopicsAndTwitterers(&#039;@peliom: #svlug foo #bar&#039;)
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>This should convert the #foo and @bar&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#!/usr/bin/python</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">re</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> convertTopicsAndTwitterers<span style="color: black;">&#40;</span><span style="color: #008000;">str</span><span style="color: black;">&#41;</span>:
    prog = <span style="color: #dc143c;">re</span>.<span style="color: #008000;">compile</span><span style="color: black;">&#40;</span>r<span style="color: #483d8b;">'#(<span style="color: #000099; font-weight: bold;">\w</span>+)'</span><span style="color: black;">&#41;</span>
    <span style="color: #008000;">str</span> = prog.<span style="color: black;">sub</span><span style="color: black;">&#40;</span>r<span style="color: #483d8b;">'#&lt;a href=&quot;http://twitter.com/search?q=%23<span style="color: #000099; font-weight: bold;">\g</span>&lt;1 rel=&quot;nofollow&quot;&gt;&quot;&gt;<span style="color: #000099; font-weight: bold;">\g</span>&lt;1&gt;&lt;/a&gt;'</span>, <span style="color: #008000;">str</span><span style="color: black;">&#41;</span>
    prog2 = <span style="color: #dc143c;">re</span>.<span style="color: #008000;">compile</span><span style="color: black;">&#40;</span>r<span style="color: #483d8b;">'@(<span style="color: #000099; font-weight: bold;">\w</span>+)'</span><span style="color: black;">&#41;</span>
    <span style="color: #ff7700;font-weight:bold;">return</span> prog2.<span style="color: black;">sub</span><span style="color: black;">&#40;</span>r<span style="color: #483d8b;">'@&lt;a href=&quot;http://twitter.com/<span style="color: #000099; font-weight: bold;">\g</span>&lt;1 rel=&quot;nofollow&quot;&gt;&quot;&gt;<span style="color: #000099; font-weight: bold;">\g</span>&lt;1&gt;&lt;/a&gt;'</span>, <span style="color: #008000;">str</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #ff7700;font-weight:bold;">print</span> convertTopicsAndTwitterers<span style="color: black;">&#40;</span><span style="color: #483d8b;">'@peliom: #svlug foo #bar'</span><span style="color: black;">&#41;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: rajbot</title>
		<link>http://www.tikirobot.net/wp/2010/01/26/replacing-urls-with-links-halp/comment-page-1/#comment-34649</link>
		<dc:creator>rajbot</dc:creator>
		<pubDate>Thu, 04 Feb 2010 19:16:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.tikirobot.net/wp/?p=2973#comment-34649</guid>
		<description>Converting &lt;code&gt; to &lt;pre lang=&quot;python&quot;&gt; on the above...</description>
		<content:encoded><![CDATA[<p>Converting &lt;code&gt; to &lt;pre lang=&#8221;python&#8221;&gt; on the above&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajbot</title>
		<link>http://www.tikirobot.net/wp/2010/01/26/replacing-urls-with-links-halp/comment-page-1/#comment-34648</link>
		<dc:creator>rajbot</dc:creator>
		<pubDate>Thu, 04 Feb 2010 19:13:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.tikirobot.net/wp/?p=2973#comment-34648</guid>
		<description>Finally found these in the akismet spam panel.. sigh</description>
		<content:encoded><![CDATA[<p>Finally found these in the akismet spam panel.. sigh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shag</title>
		<link>http://www.tikirobot.net/wp/2010/01/26/replacing-urls-with-links-halp/comment-page-1/#comment-34646</link>
		<dc:creator>shag</dc:creator>
		<pubDate>Thu, 04 Feb 2010 18:49:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.tikirobot.net/wp/?p=2973#comment-34646</guid>
		<description>Here are the test cases I used, most from your earlier tests Raj:

&lt;pre lang=&quot;python&quot;&gt;

#single url        
print convertLinks(&#039;http://tikirobot.net\n&#039;)
 
#string
print convertLinks(&#039;See http://tikirobot.net for more info.\n&#039;)

#string w/ anchor
print convertLinks(&#039;See http://tikirobot.net/#foo for more info.\n&#039;)
 
#two urls in a string
print convertLinks(&#039;See http://tikirobot.net or http://wikipedia.org for more info.\n&#039;)
 
#some test urls from flanders.co.nz
print convertLinks(&#039;This is a google search: http://www.google.com/search?q=good+url+regex&amp;rls=com.microsoft:*&amp;ie=UTF-8&amp;oe=UTF-8&amp;startIndex=&amp;startPage=1\n&#039;)
 
print convertLinks(&#039;ftp://joe:password@ftp.filetransferprotocal.com is a ftp url\n&#039;)
 
print convertLinks(&#039;There is a bare url google.ru somewhere in this sentence\n&#039;)
 
print convertLinks(&#039;both a query string and an anchor: https://some-url.com/?query=&amp;name=joe&amp;filter=*.*\n&#039;)

print convertLinks(&#039;both a query string and an anchor: https://some-url.com?query=&amp;name=joe?filter=*.*#some_anchor\n&#039;)

print convertLinks(&#039;both a query string and an anchor: https://some-url.com/?query=&amp;name=joe&amp;filter=*.*#some_anchor\n&#039;)

print convertLinks(&#039;DNS name with a concluding period: http://some-url.com./\n&#039;)

print convertLinks(&#039;DNS name with a concluding period and query string: http://some-url.com./?foo=bar\n&#039;)

print convertLinks(&#039;single-component DNS name plus root: http://to./\n&#039;)

print convertLinks(&#039;single-component DNS name: http://to/\n&#039;)


&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Here are the test cases I used, most from your earlier tests Raj:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">&nbsp;
<span style="color: #808080; font-style: italic;">#single url        </span>
<span style="color: #ff7700;font-weight:bold;">print</span> convertLinks<span style="color: black;">&#40;</span><span style="color: #483d8b;">'http://tikirobot.net<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">#string</span>
<span style="color: #ff7700;font-weight:bold;">print</span> convertLinks<span style="color: black;">&#40;</span><span style="color: #483d8b;">'See http://tikirobot.net for more info.<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">#string w/ anchor</span>
<span style="color: #ff7700;font-weight:bold;">print</span> convertLinks<span style="color: black;">&#40;</span><span style="color: #483d8b;">'See http://tikirobot.net/#foo for more info.<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">#two urls in a string</span>
<span style="color: #ff7700;font-weight:bold;">print</span> convertLinks<span style="color: black;">&#40;</span><span style="color: #483d8b;">'See http://tikirobot.net or http://wikipedia.org for more info.<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">#some test urls from flanders.co.nz</span>
<span style="color: #ff7700;font-weight:bold;">print</span> convertLinks<span style="color: black;">&#40;</span><span style="color: #483d8b;">'This is a google search: http://www.google.com/search?q=good+url+regex&amp;rls=com.microsoft:*&amp;ie=UTF-8&amp;oe=UTF-8&amp;startIndex=&amp;startPage=1<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">print</span> convertLinks<span style="color: black;">&#40;</span><span style="color: #483d8b;">'ftp://joe:password@ftp.filetransferprotocal.com is a ftp url<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">print</span> convertLinks<span style="color: black;">&#40;</span><span style="color: #483d8b;">'There is a bare url google.ru somewhere in this sentence<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">print</span> convertLinks<span style="color: black;">&#40;</span><span style="color: #483d8b;">'both a query string and an anchor: https://some-url.com/?query=&amp;name=joe&amp;filter=*.*<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">print</span> convertLinks<span style="color: black;">&#40;</span><span style="color: #483d8b;">'both a query string and an anchor: https://some-url.com?query=&amp;name=joe?filter=*.*#some_anchor<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">print</span> convertLinks<span style="color: black;">&#40;</span><span style="color: #483d8b;">'both a query string and an anchor: https://some-url.com/?query=&amp;name=joe&amp;filter=*.*#some_anchor<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">print</span> convertLinks<span style="color: black;">&#40;</span><span style="color: #483d8b;">'DNS name with a concluding period: http://some-url.com./<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">print</span> convertLinks<span style="color: black;">&#40;</span><span style="color: #483d8b;">'DNS name with a concluding period and query string: http://some-url.com./?foo=bar<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">print</span> convertLinks<span style="color: black;">&#40;</span><span style="color: #483d8b;">'single-component DNS name plus root: http://to./<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">print</span> convertLinks<span style="color: black;">&#40;</span><span style="color: #483d8b;">'single-component DNS name: http://to/<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span></pre></div></div>

]]></content:encoded>
	</item>
</channel>
</rss>

