<?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; Regular expression</title>
	<atom:link href="http://www.barattalo.it/tag/regular-expression/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.barattalo.it</link>
	<description>code snippets, classes and other stuff for developers</description>
	<lastBuildDate>Sun, 29 Aug 2010 14:28:58 +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>New version of Mini Bots PHP Class (v.1.4)</title>
		<link>http://www.barattalo.it/2010/01/20/new-version-of-mini-bots-php-class-v-1-4/</link>
		<comments>http://www.barattalo.it/2010/01/20/new-version-of-mini-bots-php-class-v-1-4/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 22:53:20 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Spiders & webbots]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[Preg_match_all]]></category>
		<category><![CDATA[Regular expression]]></category>
		<category><![CDATA[spiders]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[Web bot]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=386</guid>
		<description><![CDATA[I&#8217;ve added three more bots to the Mini Bots Php Class, now the version number is 1.4 and it has these new features. Follow the link, watch demos and download the class from the Mini Bots Php Class page: addeded twitterInfo method to retrieve the numbers of following, followers, and lists. addeded url2pdf method to [...]


Related posts:<ol><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/mini-bots-php-class/' rel='bookmark' title='Permanent Link: Mini Bots PHP Class'>Mini Bots PHP Class</a></li>
<li><a href='http://www.barattalo.it/2010/07/28/php-to-post-on-facebook-page/' rel='bookmark' title='Permanent Link: PHP to post on a Facebook page'>PHP to post on a Facebook page</a></li>
<li><a href='http://www.barattalo.it/2010/02/15/mixing-bots-to-gain-new-services/' rel='bookmark' title='Permanent Link: Mixing bots to gain new services'>Mixing bots to gain new services</a></li>
<li><a href='http://www.barattalo.it/2010/08/09/send-push-notification-to-iphone-with-php-and-pushme-to/' rel='bookmark' title='Permanent Link: Send push notification to iPhone with PHP and pushme.to'>Send push notification to iPhone with PHP and pushme.to</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/01/20/new-version-of-mini-bots-php-class-v-1-4/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP Web page to text function</title>
		<link>http://www.barattalo.it/2010/01/16/php-web-page-to-text-function/</link>
		<comments>http://www.barattalo.it/2010/01/16/php-web-page-to-text-function/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 13:55:05 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Spiders & webbots]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[Regular expression]]></category>
		<category><![CDATA[Spider]]></category>
		<category><![CDATA[spiders]]></category>
		<category><![CDATA[Web bot]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=352</guid>
		<description><![CDATA[I&#8217;ve found this nice small bot on the www.php.net site, thanks to the author of the script on the preg_replace page. This bot returns the text content of a url and it could be used to take text from a site and find relevant words to search. It&#8217;s nice because it uses CURL and let [...]


Related posts:<ol><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/07/28/php-to-post-on-facebook-page/' rel='bookmark' title='Permanent Link: PHP to post on a Facebook page'>PHP to post on a Facebook page</a></li>
<li><a href='http://www.barattalo.it/2010/03/10/how-to-write-a-text-description-into-html-input-type-password/' rel='bookmark' title='Permanent Link: How to write a text description into html input type password'>How to write a text description into html input type password</a></li>
<li><a href='http://www.barattalo.it/2010/01/20/new-version-of-mini-bots-php-class-v-1-4/' rel='bookmark' title='Permanent Link: New version of Mini Bots PHP Class (v.1.4)'>New version of Mini Bots PHP Class (v.1.4)</a></li>
<li><a href='http://www.barattalo.it/2009/11/17/set-write-here-on-input/' rel='bookmark' title='Permanent Link: Set &#8220;write here&#8221; on input type text?'>Set &#8220;write here&#8221; on input type text?</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/01/16/php-web-page-to-text-function/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Bot that retrieves url meta data and other infos</title>
		<link>http://www.barattalo.it/2010/01/12/bot-that-retrieves-url-meta-data-info/</link>
		<comments>http://www.barattalo.it/2010/01/12/bot-that-retrieves-url-meta-data-info/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 13:55:02 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Spiders & webbots]]></category>
		<category><![CDATA[bots]]></category>
		<category><![CDATA[File_get_contents]]></category>
		<category><![CDATA[Mini Bots Class]]></category>
		<category><![CDATA[Regular expression]]></category>
		<category><![CDATA[spiders]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=306</guid>
		<description><![CDATA[From a given url this function retrieves page title, meta description, keywords, favicon, and an array of 5 images to use for links. It call file_get_contents and then make some regular expression job. This function is included in the Mini Bots Class. print_r(getLinksInfo(&#34;http://www.rockit.it/articolo/825/nada-studio-report-quando-nasce-una-canzone&#34;)); function getLinksInfo($url) { $web_page = file_get_contents($url); $data['keywords']=&#34;&#34;; $data['description']=&#34;&#34;; $data['title']=&#34;&#34;; $data['favicon']=&#34;&#34;; $data['images']=array(); preg_match_all('#&#60;title([^&#62;]*)?&#62;(.*)&#60;/title&#62;#Uis', [...]


Related posts:<ol><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/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/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/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/01/12/bot-that-retrieves-url-meta-data-info/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test if a remote url exists with PHP and CURL</title>
		<link>http://www.barattalo.it/2010/01/06/test-if-a-remote-url-exists-with-php-and-curl/</link>
		<comments>http://www.barattalo.it/2010/01/06/test-if-a-remote-url-exists-with-php-and-curl/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 09:13:15 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Spiders & webbots]]></category>
		<category><![CDATA[check url]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[get_headers]]></category>
		<category><![CDATA[preg_match]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[Regular expression]]></category>
		<category><![CDATA[url validator]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=283</guid>
		<description><![CDATA[If you have to test if a local file exists you will probably use the php file_exists function, but if you have to test a remote file, that is to say a remote url, than you can use CURL and get the headers returned by the http request. If you receive a 200 code, than [...]


Related posts:<ol><li><a href='http://www.barattalo.it/2010/03/01/php-curl-bot-to-update-facebook-status/' rel='bookmark' title='Permanent Link: PHP curl bot to update Facebook status'>PHP curl bot to update Facebook status</a></li>
<li><a href='http://www.barattalo.it/2009/12/29/tiny-url-encode-and-decode-with-php/' rel='bookmark' title='Permanent Link: Tiny url encode and decode with PHP'>Tiny url encode and decode with PHP</a></li>
<li><a href='http://www.barattalo.it/2010/01/16/copying-remote-files-on-your-server-with-php/' rel='bookmark' title='Permanent Link: Copying remote files on your server with PHP'>Copying remote files on your server with PHP</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/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>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/01/06/test-if-a-remote-url-exists-with-php-and-curl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP equivalent to PHP ereg_replace function</title>
		<link>http://www.barattalo.it/2009/11/10/asp-equivalent-to-php-ereg_replace-function/</link>
		<comments>http://www.barattalo.it/2009/11/10/asp-equivalent-to-php-ereg_replace-function/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 22:05:49 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[Asp]]></category>
		<category><![CDATA[Ereg_replace]]></category>
		<category><![CDATA[PHPvsASP]]></category>
		<category><![CDATA[RegExp]]></category>
		<category><![CDATA[Regular expression]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=137</guid>
		<description><![CDATA[I&#8217;ve used so many time the php function ereg_replace that when I have to use ASP (&#8217;cause sometimens you have to use that old terrible language) I have to use it also in ASP. I&#8217;ve also read on PHP site that this function will soon became depracated. I&#8217;m sad about that. But in Microsoft ASP [...]


Related posts:<ol><li><a href='http://www.barattalo.it/2010/02/09/asp-strip-tags-function-equivalent-to-php/' rel='bookmark' title='Permanent Link: ASP equivalent to PHP strip_tags'>ASP equivalent to PHP strip_tags</a></li>
<li><a href='http://www.barattalo.it/2009/11/10/asp-equivalent-to-php-ucfirst-function/' rel='bookmark' title='Permanent Link: ASP equivalent to PHP Ucfirst function'>ASP equivalent to PHP Ucfirst function</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2009/11/10/asp-equivalent-to-php-ereg_replace-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OnKeyUp Fix Alphanumerical Chars</title>
		<link>http://www.barattalo.it/2009/11/10/onkeyup-fix-alphanumerical-chars/</link>
		<comments>http://www.barattalo.it/2009/11/10/onkeyup-fix-alphanumerical-chars/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 12:54:48 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[Html]]></category>
		<category><![CDATA[Java Script]]></category>
		<category><![CDATA[Alphanumeric]]></category>
		<category><![CDATA[OnKeyUp]]></category>
		<category><![CDATA[Regular expression]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=130</guid>
		<description><![CDATA[When you have an html form and you want only alphanumerical [a-z0-9] chars in your input, you can use this small piece of code in the onkeyup attribute. It will strip non alphanumerical characters while they are typed in a input text box. &#60;form&#62; &#60;input type='text' onkeyup=&#34;this.value = this.value.replace(/[^a-z0-9]/gi,&#34;&#34;);&#34; /&#62; &#60;/form&#62; Related posts:How to capture [...]


Related posts:<ol><li><a href='http://www.barattalo.it/2010/02/16/how-to-capture-enter-key-pressed-in-a-form-javascript/' rel='bookmark' title='Permanent Link: How to capture enter key pressed in a form (JavaScript)'>How to capture enter key pressed in a form (JavaScript)</a></li>
<li><a href='http://www.barattalo.it/2009/11/17/set-write-here-on-input/' rel='bookmark' title='Permanent Link: Set &#8220;write here&#8221; on input type text?'>Set &#8220;write here&#8221; on input type text?</a></li>
<li><a href='http://www.barattalo.it/2010/03/10/how-to-write-a-text-description-into-html-input-type-password/' rel='bookmark' title='Permanent Link: How to write a text description into html input type password'>How to write a text description into html input type password</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>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2009/11/10/onkeyup-fix-alphanumerical-chars/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Do spelling using google spell checker</title>
		<link>http://www.barattalo.it/2009/11/10/do-spelling-using-google/</link>
		<comments>http://www.barattalo.it/2009/11/10/do-spelling-using-google/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 10:31:53 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Spiders & webbots]]></category>
		<category><![CDATA[File_get_contents]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Parsing]]></category>
		<category><![CDATA[Preg_match_all]]></category>
		<category><![CDATA[Regular expression]]></category>
		<category><![CDATA[Spell]]></category>
		<category><![CDATA[Spell checker]]></category>
		<category><![CDATA[Spell checking]]></category>
		<category><![CDATA[Spelling]]></category>
		<category><![CDATA[Spider]]></category>
		<category><![CDATA[Web bot]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=108</guid>
		<description><![CDATA[If you have a user input that may contains some error you can try to check the spelling using Google Spelling Suggestion service (there is an api and you have to register to have an api key to use their web services). But you can obtain the same result searching the Google search engine and [...]


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/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/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/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/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>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2009/11/10/do-spelling-using-google/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
