<?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>Adem Alp YILDIZ &#187; url search</title>
	<atom:link href="http://www.ademalpyildiz.com.tr/tag/url-search/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ademalpyildiz.com.tr</link>
	<description>Hayatı dürtmeye devam...</description>
	<lastBuildDate>Tue, 04 May 2010 14:08:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Bir Metindeki Adresleri Linke Çevirmek</title>
		<link>http://www.ademalpyildiz.com.tr/2009/09/04/bir-metindeki-adresleri-linke-cevirmek/</link>
		<comments>http://www.ademalpyildiz.com.tr/2009/09/04/bir-metindeki-adresleri-linke-cevirmek/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 08:38:43 +0000</pubDate>
		<dc:creator>Adem Alp YILDIZ</dc:creator>
				<category><![CDATA[Genel]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[regexp]]></category>
		<category><![CDATA[url search]]></category>

		<guid isPermaLink="false">http://www.ademalpyildiz.com.tr/?p=66</guid>
		<description><![CDATA[Bir arkadaşın ihtiyacı için bulup buluşturduğum bir kod parçası Kullanılan regexp cümleciği 1 @(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@ Örnek kod 1 2 3 4 5 6 $string='deneme olarak http://sayfa.site.com/goster/icerik.html bu linki ve http://sayfa.site.com/sakla/icerik.html sadece yazı içinden alıp link yapacak.'; &#160; $string = preg_replace&#40;'@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '&#60;a href=&#34;$1&#34;&#62;$1&#60;/a&#62;', $string&#41;; Örnek kodun çıktısı 1 2 3 deneme olarak &#60;a href=&#34;http://sayfa.site.com/goster/icerik.html&#34;&#62;http://sayfa.site.com/goster/icerik.html&#60;/a&#62; bu linki ve [...]]]></description>
			<content:encoded><![CDATA[<p>Bir arkadaşın ihtiyacı için bulup buluşturduğum bir kod parçası</p>
<p>Kullanılan regexp cümleciği</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="plain" style="font-family:monospace;">@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@</pre></td></tr></table></div>

<p>Örnek kod</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$string</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'deneme olarak http://sayfa.site.com/goster/icerik.html
bu linki ve http://sayfa.site.com/sakla/icerik.html sadece
yazı içinden alıp link yapacak.'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$string</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@'</span><span style="color: #339933;">,</span> 
<span style="color: #0000ff;">'&lt;a href=&quot;$1&quot;&gt;$1&lt;/a&gt;'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$string</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Örnek kodun çıktısı</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">deneme olarak &lt;a href=&quot;http://sayfa.site.com/goster/icerik.html&quot;&gt;http://sayfa.site.com/goster/icerik.html&lt;/a&gt;
bu linki ve &lt;a href=&quot;http://sayfa.site.com/sakla/icerik.html&quot;&gt;http://sayfa.site.com/sakla/icerik.html&lt;/a&gt; sadece
yazı içinden alıp link yapacak.</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.ademalpyildiz.com.tr/2009/09/04/bir-metindeki-adresleri-linke-cevirmek/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
