<?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; 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>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>Php Function to resize video from YouTube and Vimeo</title>
		<link>http://www.barattalo.it/2010/10/06/php-function-embed-video-youtube-vimeo/</link>
		<comments>http://www.barattalo.it/2010/10/06/php-function-embed-video-youtube-vimeo/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 13:31:10 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[Regular expression]]></category>
		<category><![CDATA[vimeo]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=669</guid>
		<description><![CDATA[When you make a web application that let the user insert video embeds coming from YouTube or from Vimeo, or what ever else, there is the problem of the embed size. In fact the object tag (iframe, embed, object) can damage your template and that&#8217;s not nice. You can try to handle the input and [...]


Related posts:<ol><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/02/11/php-function-to-fix-collation-on-database-fields-of-mysql/' rel='bookmark' title='PHP function to fix collation on database fields of MySQL'>PHP function to fix collation on database fields of MySQL</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/10/06/php-function-embed-video-youtube-vimeo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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 & web bots]]></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='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='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='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='Mixing bots to gain new services'>Mixing bots to gain new services</a></li>
<li><a href='http://www.barattalo.it/2010/04/09/mini-bot-class-updated/' rel='bookmark' title='Mini Bot Class Updated'>Mini Bot Class Updated</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 & web bots]]></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='PHP to get twitter infos and avatar'>PHP to get twitter infos and avatar</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/07/28/php-to-post-on-facebook-page/' rel='bookmark' title='PHP to post on a Facebook page'>PHP to post on a Facebook page</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='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/2010/03/10/how-to-write-a-text-description-into-html-input-type-password/' rel='bookmark' title='How to write a text description into html input type password'>How to write a text description into html input type password</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/01/16/php-web-page-to-text-function/feed/</wfw:commentRss>
		<slash:comments>2</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 & web bots]]></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. Here is the output: And here there are the used functions: Related posts:PHP [...]


Related posts:<ol><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/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/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/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/2010/03/30/php-google-images-mini-bot/' rel='bookmark' title='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>1</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 & web bots]]></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/2011/11/01/php-code-to-check-if-remote-mp3-exists/' rel='bookmark' title='PHP code to check if remote mp3 exists'>PHP code to check if remote mp3 exists</a></li>
<li><a href='http://www.barattalo.it/2010/03/01/php-curl-bot-to-update-facebook-status/' rel='bookmark' title='PHP curl bot to update Facebook status'>PHP curl bot to update Facebook status</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='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/2009/12/29/tiny-url-encode-and-decode-with-php/' rel='bookmark' title='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='Copying remote files on your server with PHP'>Copying remote files on your server with PHP</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>1</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='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='ASP equivalent to PHP Ucfirst function'>ASP equivalent to PHP Ucfirst function</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>
</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[Javascript]]></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. Related posts:How to capture enter key pressed in a form (JavaScript) Set [...]


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='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='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='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='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 & web bots]]></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='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='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='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='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='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>2</slash:comments>
		</item>
	</channel>
</rss>

