<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ugotit.de &#187; Reguläre Ausdrücke</title>
	<atom:link href="http://ugotit.de/tag/regulare-ausdrucke/feed/" rel="self" type="application/rss+xml" />
	<link>http://ugotit.de</link>
	<description>and I say &#34;It&#039;s all right&#34;</description>
	<lastBuildDate>Fri, 09 Sep 2011 07:16:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Mit regulären Ausdrücken Links in Twitter einfügen</title>
		<link>http://ugotit.de/2010/02/22/mit-regularen-ausdrucken-links-in-twitter-einfugen/</link>
		<comments>http://ugotit.de/2010/02/22/mit-regularen-ausdrucken-links-in-twitter-einfugen/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 10:26:52 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[some lines of code]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Reguläre Ausdrücke]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://ugotit.de/?p=102</guid>
		<description><![CDATA[Statt vieler Worte heute mal nur ein paar Zeilen Code und eine kurze Erklärung: Wenn Ihr über die Twitter-API Nachrichten von Twitter abfragt bestehen diese nur aus Text. Schöner wären hier natürlich anklickbare Links, Hashtags und Nutzernamen, was ihr mit folgendem Code einfach bewerkstelligen könnt. Die Regulären Ausdrücke lassen sich natürlich auch in anderen Sprachen [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://ugotit.de/wp-content/uploads/2009/12/jquery-logo.gif" alt="jQuery - write less do more" title="jQuery - write less do more" width="168" height="146" class="right" />Statt vieler Worte heute mal nur ein paar Zeilen Code und eine kurze Erklärung:</p>
<p>Wenn Ihr über die Twitter-API Nachrichten von Twitter abfragt bestehen diese nur aus Text. Schöner wären hier natürlich anklickbare Links, Hashtags und Nutzernamen, was ihr mit folgendem Code einfach  bewerkstelligen könnt. Die Regulären Ausdrücke lassen sich natürlich auch in anderen Sprachen realisieren. Gefunden habe ich sie bei <a href="http://blog.andreaolivato.net/programming/using-regular-expressions-to-add-links-to-tweets.html">Andrea Olivato</a></p>
<ol class="code">
<li><code>var tweet = 'woohoo dank @ugotit von http://www.ugotit.de hab ich ein paar tolle #regular #expressions gefunden.';</code></li>
<li><code>tweet = tweet.replace(/http([s]?):\/\/([^\ \)$]*)/,'&lt;a href=&quot;http$1://$2&quot; rel=&quot;nofollow&quot; title=&quot;$2&quot;&gt;http$1://$2&lt;/a&gt;');</code></li>
<li><code>tweet = tweet.replace(/@([a-zA-Z0-9_]*)/,'&lt;a href=&quot;http://twitter.com/$1&quot; title=&quot;$1 profile on Twitter&quot; rel=&quot;nofollow&quot;&gt;@$1&lt;/a&gt;');</code></li>
<li><code>tweet = tweet.replace(/\#([a-zA-Z0-9_]*)/,'&lt;a href=&quot;http://search.twitter.com/search?q=%23$1&quot; title=&quot;search for $1 on Twitter&quot; rel=&quot;nofollow&quot;&gt;\#$1&lt;/a&gt;');</code></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://ugotit.de/2010/02/22/mit-regularen-ausdrucken-links-in-twitter-einfugen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)

Served from: ugotit.de @ 2012-02-04 10:13:05 -->
