<?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>Barattalo &#187; preg_replace</title>
	<atom:link href="http://www.barattalo.it/tag/preg_replace/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.barattalo.it</link>
	<description>code snippets, classes and other stuff for developers</description>
	<lastBuildDate>Fri, 10 Sep 2010 15:59:19 +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>Parsing Flickr Feed with PHP tutorial</title>
		<link>http://www.barattalo.it/2010/05/30/parsing-flickr-feed-with-php-tutorial/</link>
		<comments>http://www.barattalo.it/2010/05/30/parsing-flickr-feed-with-php-tutorial/#comments</comments>
		<pubDate>Sun, 30 May 2010 21:48:28 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Spiders & webbots]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[grabbing]]></category>
		<category><![CDATA[Mini Bots Class]]></category>
		<category><![CDATA[Parsing]]></category>
		<category><![CDATA[preg_replace]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Spider]]></category>
		<category><![CDATA[Thumbs]]></category>
		<category><![CDATA[webbot]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=531</guid>
		<description><![CDATA[I&#8217;ve spent about 30 minutes to find a javascript embed to print out a custom thumbs list of flickr photos, but I didn&#8217;t find anything clean enaugh&#8230; and I&#8217;ve not enaugh time to spend to read the flickr&#8217;s API&#8217;s&#8230; So, I&#8217;ve searched for the feed of the user, and I&#8217;ve found it at the bottom [...]


Related posts:<ol><li><a href='http://www.barattalo.it/2009/12/24/php-meteo-bot-for-google/' rel='bookmark' title='Permanent Link: PHP bot to grab meteo information from Google'>PHP bot to grab meteo information from Google</a></li>
<li><a href='http://www.barattalo.it/2010/08/29/php-bot-to-get-wikipedia-definitions/' rel='bookmark' title='Permanent Link: PHP bot to get wikipedia definitions'>PHP bot to get wikipedia definitions</a></li>
<li><a href='http://www.barattalo.it/2009/11/10/do-spelling-using-google/' rel='bookmark' title='Permanent Link: Do spelling using google spell checker'>Do spelling using google spell checker</a></li>
<li><a href='http://www.barattalo.it/2010/01/12/bot-that-retrieves-url-meta-data-info/' rel='bookmark' title='Permanent Link: Bot that retrieves url meta data and other infos'>Bot that retrieves url meta data and other infos</a></li>
<li><a href='http://www.barattalo.it/2010/03/01/php-to-get-twitter-infos-and-avatar/' rel='bookmark' title='Permanent Link: PHP to get twitter infos and avatar'>PHP to get twitter infos and avatar</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/05/30/parsing-flickr-feed-with-php-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP parse url, mailto, and also twitter&#8217;s usernames and arguments</title>
		<link>http://www.barattalo.it/2010/03/10/php-parse-url-mailto-and-also-twitters-usernames-and-arguments/</link>
		<comments>http://www.barattalo.it/2010/03/10/php-parse-url-mailto-and-also-twitters-usernames-and-arguments/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 20:41:45 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[href]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[preg_replace]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=496</guid>
		<description><![CDATA[This small function receive a text as input and returns an html text with links if the source text contains urls (http://www&#8230; but also ftp://&#8230; and every other protocol), emails, twitter&#8217;s usernames (with @ at the beginning) and also twitter tags (with # at the beginning). Those replaces are possible with the php preg_replace function: [...]


Related posts:<ol><li><a href='http://www.barattalo.it/2009/11/09/make-square-thumbs-or-cropped-thumbs-with-php/' rel='bookmark' title='Permanent Link: Make square thumbs or cropped thumbs with php'>Make square thumbs or cropped thumbs with php</a></li>
<li><a href='http://www.barattalo.it/2010/09/09/how-to-change-twitter-status-with-php-and-curl-without-oauth/' rel='bookmark' title='Permanent Link: How to change twitter status with php and curl without oAuth'>How to change twitter status with php and curl without oAuth</a></li>
<li><a href='http://www.barattalo.it/2010/03/01/php-to-get-twitter-infos-and-avatar/' rel='bookmark' title='Permanent Link: PHP to get twitter infos and avatar'>PHP to get twitter infos and avatar</a></li>
<li><a href='http://www.barattalo.it/2010/05/30/parsing-flickr-feed-with-php-tutorial/' rel='bookmark' title='Permanent Link: Parsing Flickr Feed with PHP tutorial'>Parsing Flickr Feed with PHP tutorial</a></li>
<li><a href='http://www.barattalo.it/2010/03/30/php-google-images-mini-bot/' rel='bookmark' title='Permanent Link: PHP google images mini bot'>PHP google images mini bot</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/03/10/php-parse-url-mailto-and-also-twitters-usernames-and-arguments/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Fix html tags, close tags, repair bad quotes and more</title>
		<link>http://www.barattalo.it/2010/02/03/fix-html-tags-close-tags-repair-bad-quotes-and-more/</link>
		<comments>http://www.barattalo.it/2010/02/03/fix-html-tags-close-tags-repair-bad-quotes-and-more/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 13:31:22 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[Html]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[bad tags]]></category>
		<category><![CDATA[empty tags]]></category>
		<category><![CDATA[html fix]]></category>
		<category><![CDATA[html tidy]]></category>
		<category><![CDATA[preg_replace]]></category>
		<category><![CDATA[regular expressions]]></category>
		<category><![CDATA[repair html]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=434</guid>
		<description><![CDATA[This class can solve many problems coming from user generated html content or to fix html content before making some hard work with your bots! (It&#8217;s specially usefull for web sites without the Html Tidy module of PHP). Hre is a quick list of the magic things it can do. delete closed tags without their [...]


Related posts:<ol><li><a href='http://www.barattalo.it/html-fixer/' rel='bookmark' title='Permanent Link: HTML fixer'>HTML fixer</a></li>
<li><a href='http://www.barattalo.it/2010/02/22/reading-mp3-informations-with-php-id3-tags/' rel='bookmark' title='Permanent Link: Reading mp3 informations with php (id3 tags)'>Reading mp3 informations with php (id3 tags)</a></li>
<li><a href='http://www.barattalo.it/2010/01/10/sending-emails-with-attachment-and-html-with-php/' rel='bookmark' title='Permanent Link: Sending HTML emails with attachment with PHP'>Sending HTML emails with attachment with PHP</a></li>
<li><a href='http://www.barattalo.it/2010/04/27/correct-headers-to-download-a-csv-from-php/' rel='bookmark' title='Permanent Link: Correct headers to download a CSV from PHP'>Correct headers to download a CSV from PHP</a></li>
<li><a href='http://www.barattalo.it/2009/11/24/truncate-string-preserving-some-words-in-php/' rel='bookmark' title='Permanent Link: Truncate string preserving some words in PHP'>Truncate string preserving some words in PHP</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/02/03/fix-html-tags-close-tags-repair-bad-quotes-and-more/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Truncate string preserving some words in PHP</title>
		<link>http://www.barattalo.it/2009/11/24/truncate-string-preserving-some-words-in-php/</link>
		<comments>http://www.barattalo.it/2009/11/24/truncate-string-preserving-some-words-in-php/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 10:11:53 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[explode]]></category>
		<category><![CDATA[preg_replace]]></category>
		<category><![CDATA[split]]></category>
		<category><![CDATA[truncate]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=182</guid>
		<description><![CDATA[When you search in Google for a string, Google highlights with bold text the words you&#8217;ve searched in the results list. You can use this function to do the same thing in PHP. It splits the text to search into an array of words and then searches each word into this array. It also marks [...]


Related posts:<ol><li><a href='http://www.barattalo.it/2010/03/30/php-google-images-mini-bot/' rel='bookmark' title='Permanent Link: PHP google images mini bot'>PHP google images mini bot</a></li>
<li><a href='http://www.barattalo.it/2010/01/16/php-web-page-to-text-function/' rel='bookmark' title='Permanent Link: PHP Web page to text function'>PHP Web page to text function</a></li>
<li><a href='http://www.barattalo.it/2010/03/10/php-parse-url-mailto-and-also-twitters-usernames-and-arguments/' rel='bookmark' title='Permanent Link: PHP parse url, mailto, and also twitter&#8217;s usernames and arguments'>PHP parse url, mailto, and also twitter&#8217;s usernames and arguments</a></li>
<li><a href='http://www.barattalo.it/2009/11/10/do-spelling-using-google/' rel='bookmark' title='Permanent Link: Do spelling using google spell checker'>Do spelling using google spell checker</a></li>
<li><a href='http://www.barattalo.it/2009/11/09/hello-world/' rel='bookmark' title='Permanent Link: Load File into a String'>Load File into a String</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2009/11/24/truncate-string-preserving-some-words-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
