<?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/"
	xmlns:media="http://search.yahoo.com/mrss/">

<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>Mon, 07 Nov 2011 11:40:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>get MySpace events with a PHP function</title>
		<link>http://www.barattalo.it/2011/02/21/get-myspace-events-php-function/</link>
		<comments>http://www.barattalo.it/2011/02/21/get-myspace-events-php-function/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 11:41:19 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Spiders & web bots]]></category>
		<category><![CDATA[concerts]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[mini bot]]></category>
		<category><![CDATA[myspace]]></category>
		<category><![CDATA[preg_replace]]></category>
		<category><![CDATA[Spider]]></category>
		<category><![CDATA[Web bot]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=714</guid>
		<description><![CDATA[Here is a function to read the concerts for a myspace band page. This code retrieves the &#8220;shows page&#8221; for a specified myspace username, and than parse the html to find and decode data. Since myspace returns a page in Italian (this probably depends on geographic ip translations) the fnction uses a months array in [...]


Related posts:<ol><li><a href='http://www.barattalo.it/2009/12/24/php-meteo-bot-for-google/' rel='bookmark' title='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/01/16/php-web-page-to-text-function/' rel='bookmark' title='PHP Web page to text function'>PHP Web page to text function</a></li>
<li><a href='http://www.barattalo.it/2010/03/01/php-to-get-twitter-infos-and-avatar/' rel='bookmark' title='PHP to get twitter infos and avatar'>PHP to get twitter infos and avatar</a></li>
<li><a href='http://www.barattalo.it/2010/02/10/php-how-to-calculate-age-from-date-of-birth/' rel='bookmark' title='PHP how to calculate age from date of birth'>PHP how to calculate age from date of birth</a></li>
<li><a href='http://www.barattalo.it/2010/08/29/php-bot-to-get-wikipedia-definitions/' rel='bookmark' title='PHP bot to get wikipedia definitions'>PHP bot to get wikipedia definitions</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2011/02/21/get-myspace-events-php-function/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<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 & web bots]]></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/2011/08/18/how-to-use-instagr-am-photos/' rel='bookmark' title='How to use Instagr.am photos on your site'>How to use Instagr.am photos on your site</a></li>
<li><a href='http://www.barattalo.it/2009/12/24/php-meteo-bot-for-google/' rel='bookmark' title='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/2011/02/21/get-myspace-events-php-function/' rel='bookmark' title='get MySpace events with a PHP function'>get MySpace events with a PHP function</a></li>
<li><a href='http://www.barattalo.it/2010/08/29/php-bot-to-get-wikipedia-definitions/' rel='bookmark' title='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='Do spelling using google spell checker'>Do spelling using google spell checker</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/05/30/parsing-flickr-feed-with-php-tutorial/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<enclosure url="http://www.barattalo.it/wp-content/uploads/2010/05/2010-05-30_233558-300x268.jpg" length="23388" type="image/jpg" /><media:content url="http://www.barattalo.it/wp-content/uploads/2010/05/2010-05-30_233558-300x268.jpg" width="300" height="268" medium="image" type="image/jpeg" />	</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='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/03/30/php-google-images-mini-bot/' rel='bookmark' title='PHP google images mini bot'>PHP google images mini bot</a></li>
<li><a href='http://www.barattalo.it/2010/05/30/parsing-flickr-feed-with-php-tutorial/' rel='bookmark' title='Parsing Flickr Feed with PHP tutorial'>Parsing Flickr Feed with PHP tutorial</a></li>
<li><a href='http://www.barattalo.it/2009/11/24/truncate-string-preserving-some-words-in-php/' rel='bookmark' title='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/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='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='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='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='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='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>6</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='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='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='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='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='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>

