<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Andrea Olivato - Latest Comments in Using Regular Expressions to add links to tweets</title><link>http://andreaolivato.disqus.com/</link><description></description><atom:link href="https://andreaolivato.disqus.com/private_using_regular_expressions_to_add_links_to_tweets/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 19 Dec 2013 11:45:00 -0000</lastBuildDate><item><title>Re: Using Regular Expressions to add links to tweets</title><link>http://blog.andreaolivato.net/programming/using-regular-expressions-to-add-links-to-tweets.html#comment-1170305267</link><description>&lt;p&gt;You need to fix this example...&lt;br&gt;$tweet =~ s/http([s]?):\/\/([^\ \)$]*)/&lt;a href="http$1://$2" rel="nofollow noopener" target="_blank" title="$2"&gt;http$1://$2&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Should read&lt;br&gt;$tweet =~ s/http([s]?):\/\/([^\ \$]*)/&lt;a href="http$1://$2" rel="nofollow noopener" target="_blank" title="$2"&gt;http$1://$2&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Notice the extra ")" you had in the example&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Arnold</dc:creator><pubDate>Thu, 19 Dec 2013 11:45:00 -0000</pubDate></item><item><title>Re: Using Regular Expressions to add links to tweets</title><link>http://blog.andreaolivato.net/programming/using-regular-expressions-to-add-links-to-tweets.html#comment-266068391</link><description>&lt;p&gt;These are wonderful! Thank you for sharing&amp;lt;a href="http: &lt;a href="http://monclerjackenverkauf.com" rel="nofollow noopener" target="_blank" title="monclerjackenverkauf.com"&gt;monclerjackenverkauf.com&lt;/a&gt;"=""&amp;gt;Moncler Jacken&lt;a&gt;    &lt;br&gt;&amp;lt;a href="http: monclerjackenverkauf.com"=""&amp;gt;Moncler Online&lt;/a&gt;&lt;a&gt; &lt;br&gt;&amp;lt;a href="http: monclerjackenverkauf.com"=""&amp;gt;Moncler Outlet&lt;/a&gt;&lt;a&gt;&lt;br&gt;&amp;lt;a href="http: monclerjackenverkauf.com"=""&amp;gt;Moncler Verkauf&lt;/a&gt;&lt;a&gt;&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guoyongping000</dc:creator><pubDate>Tue, 26 Jul 2011 21:57:28 -0000</pubDate></item><item><title>Re: Using Regular Expressions to add links to tweets</title><link>http://blog.andreaolivato.net/programming/using-regular-expressions-to-add-links-to-tweets.html#comment-179599277</link><description>&lt;p&gt;Wow. I was sitting there trying to learn about regular expressions to do this tiny little twitter bit for a WordPress plugin I was working on... I was getting annoyed, and I just decided to Google what I was trying to do, and bam, I came across your post. I wasn't execting to find an answer, but your post does exactly what I was trying to do! I Can't thank you enough!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jason</dc:creator><pubDate>Wed, 06 Apr 2011 19:56:23 -0000</pubDate></item><item><title>Re: Using Regular Expressions to add links to tweets</title><link>http://blog.andreaolivato.net/programming/using-regular-expressions-to-add-links-to-tweets.html#comment-143369248</link><description>&lt;p&gt;Can I use this code in a GPL licensed plugin? I couldn't find a license or copyright statement on the code, but I read that you're a free software lover, so I'm assuming you'll say yes. :-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Callum</dc:creator><pubDate>Wed, 09 Feb 2011 06:41:47 -0000</pubDate></item><item><title>Re: Using Regular Expressions to add links to tweets</title><link>http://blog.andreaolivato.net/programming/using-regular-expressions-to-add-links-to-tweets.html#comment-25856045</link><description>&lt;p&gt;Thanks to you for the great article ;)&lt;br&gt;[ e dato che siamo entrambi italiani te lo dico anche in italiano: GRAZIE A TE ;p ]&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Luciano Mammino</dc:creator><pubDate>Tue, 15 Dec 2009 12:19:17 -0000</pubDate></item><item><title>Re: Using Regular Expressions to add links to tweets</title><link>http://blog.andreaolivato.net/programming/using-regular-expressions-to-add-links-to-tweets.html#comment-25848344</link><description>&lt;p&gt;Yeah unfortunately there are some problem with pasted snippets. Thanks a lot for your JS suggestion, will update my original article linking at your comment.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andrea Olivato</dc:creator><pubDate>Tue, 15 Dec 2009 10:55:04 -0000</pubDate></item><item><title>Re: Using Regular Expressions to add links to tweets</title><link>http://blog.andreaolivato.net/programming/using-regular-expressions-to-add-links-to-tweets.html#comment-25847573</link><description>&lt;p&gt;Sorry, I don't know if there's a way to paste code on disquis... so check the code on pastebin: &lt;a href="http://pastebin.com/f69796c47" rel="nofollow noopener" target="_blank" title="http://pastebin.com/f69796c47"&gt;http://pastebin.com/f69796c47&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Luciano Mammino</dc:creator><pubDate>Tue, 15 Dec 2009 10:45:02 -0000</pubDate></item><item><title>Re: Using Regular Expressions to add links to tweets</title><link>http://blog.andreaolivato.net/programming/using-regular-expressions-to-add-links-to-tweets.html#comment-25847181</link><description>&lt;p&gt;Ops... i forgot the global search flag :P here's a new version of the javascript function...&lt;br&gt;&lt;br&gt;&lt;code&gt;&lt;br&gt;	function twitterAddLinks(text)&lt;br&gt;	{&lt;br&gt;		return text.replace( /http([s]?):\/\/([^\ \)$]*)/g,&lt;br&gt;						'&lt;a href="http$1://$2" rel="nofollow noopener" target="_blank" title="$2"&gt;http$1://$2&lt;/a&gt;')&lt;br&gt;					.replace(/@([a-zA-Z0-9_]*)/g,&lt;br&gt;						'&lt;a href="http://twitter.com/$1" rel="nofollow noopener" target="_blank" title="$1 profile on Twitter"&gt;@$1&lt;/a&gt;')&lt;br&gt;					.replace(/\#([a-zA-Z0-9_]*)/g,&lt;br&gt;						'&lt;a href="http://search.twitter.com/?q=%23$1" rel="nofollow noopener" target="_blank" title="search for $1 on Twitter"&gt;\#$1&lt;/a&gt;');&lt;br&gt;	}&lt;br&gt;&lt;/code&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Luciano Mammino</dc:creator><pubDate>Tue, 15 Dec 2009 10:41:38 -0000</pubDate></item><item><title>Re: Using Regular Expressions to add links to tweets</title><link>http://blog.andreaolivato.net/programming/using-regular-expressions-to-add-links-to-tweets.html#comment-22694851</link><description>&lt;p&gt;Oh you're definitely right! Thanks a lot&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andrea Olivato</dc:creator><pubDate>Wed, 11 Nov 2009 02:32:31 -0000</pubDate></item><item><title>Re: Using Regular Expressions to add links to tweets</title><link>http://blog.andreaolivato.net/programming/using-regular-expressions-to-add-links-to-tweets.html#comment-22649259</link><description>&lt;p&gt;You need to modify the "complete example" because the link translation must take place first.  Otherwise, all the previous links created are corrupted.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rob</dc:creator><pubDate>Tue, 10 Nov 2009 19:01:04 -0000</pubDate></item></channel></rss>