<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/php/tags/regex</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 11 Oct 2008 04:23:27 GMT</pubDate>
<item>
<title>(PHP) check to see if a name is spanish - fris</title>
<link>http://snipplr.com/view/8528/check-to-see-if-a-name-is-spanish/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 22 Sep 2008 01:19:28 GMT</pubDate>
<guid>http://snipplr.com/view/8528/check-to-see-if-a-name-is-spanish/</guid>
</item>
<item>
<title>(PHP) all spaces become single spaces regex - sublimino</title>
<link>http://snipplr.com/view/8152/all-spaces-become-single-spaces-regex/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 02 Sep 2008 11:57:38 GMT</pubDate>
<guid>http://snipplr.com/view/8152/all-spaces-become-single-spaces-regex/</guid>
</item>
<item>
<title>(PHP) count words used in a wordpress post - fris</title>
<link>http://snipplr.com/view/8089/count-words-used-in-a-wordpress-post/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 29 Aug 2008 21:26:27 GMT</pubDate>
<guid>http://snipplr.com/view/8089/count-words-used-in-a-wordpress-post/</guid>
</item>
<item>
<title>(PHP) Make page titles seo-friendly for URL - jdstraughan</title>
<link>http://snipplr.com/view/7866/make-page-titles-seofriendly-for-url/</link>
<description><![CDATA[ <p>If you have a title, for something like a blog or product, and want to make an seo-friendly name to call it, here is a function.

SAMPLE INPUT:
$title = "This foo's bar is rockin' cool!";
echo make_seo_name($title);
//RETURNS:
//this-foos-bar-is-rockin-cool</p> ]]></description>
<pubDate>Thu, 14 Aug 2008 00:01:15 GMT</pubDate>
<guid>http://snipplr.com/view/7866/make-page-titles-seofriendly-for-url/</guid>
</item>
<item>
<title>(PHP) Strip phone number of all non alpha-numeric characters - dbug13</title>
<link>http://snipplr.com/view/7862/strip-phone-number-of-all-non-alphanumeric-characters/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 13 Aug 2008 16:52:11 GMT</pubDate>
<guid>http://snipplr.com/view/7862/strip-phone-number-of-all-non-alphanumeric-characters/</guid>
</item>
<item>
<title>(PHP) convert links into clickable links - fris</title>
<link>http://snipplr.com/view/7529/convert-links-into-clickable-links/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 27 Jul 2008 07:29:28 GMT</pubDate>
<guid>http://snipplr.com/view/7529/convert-links-into-clickable-links/</guid>
</item>
<item>
<title>(PHP) Count sentences in a string - evanwalsh</title>
<link>http://snipplr.com/view/6910/count-sentences-in-a-string/</link>
<description><![CDATA[ <p>This will count sentences that end in . or ? or ! and have a space after them.</p> ]]></description>
<pubDate>Wed, 25 Jun 2008 11:35:01 GMT</pubDate>
<guid>http://snipplr.com/view/6910/count-sentences-in-a-string/</guid>
</item>
<item>
<title>(PHP) Censor bad words with regexp - oso96_2000</title>
<link>http://snipplr.com/view/6332/censor-bad-words-with-regexp/</link>
<description><![CDATA[ <p>This function uses the power of regexp to check if some bad word are on the text, also offers the posibility to change those word for something else. Examples:

$texto = 'fuck off!';
filtrado($texto); returns true since a bad word has been found on the text
filtrado($texto, '[censored]'); //returns [censored] off!

And because regexp, this will work with something like "fck off!". You can see a more detailed example here:
http://www.otaku-anime.com/varios/filtro.php -- Example
http://www.otaku-anime.com/varios/filtro.php?source -- Source code of the example</p> ]]></description>
<pubDate>Mon, 19 May 2008 16:39:57 GMT</pubDate>
<guid>http://snipplr.com/view/6332/censor-bad-words-with-regexp/</guid>
</item>
<item>
<title>(PHP) Replace a URL with its domain name and create link - jaytee</title>
<link>http://snipplr.com/view/5759/replace-a-url-with-its-domain-name-and-create-link/</link>
<description><![CDATA[ <p>Worst title ever.  Basically, this takes a string like:
"Check this out: http://snipplr.com/view/5759/replace-a-url-its-domain-name-and-create-link/" and replaces it with "Check this out: snipplr.com [with a link to the full URL]"</p> ]]></description>
<pubDate>Wed, 09 Apr 2008 17:48:06 GMT</pubDate>
<guid>http://snipplr.com/view/5759/replace-a-url-with-its-domain-name-and-create-link/</guid>
</item>
<item>
<title>(PHP) UK postcode parser - naz</title>
<link>http://snipplr.com/view/5464/uk-postcode-parser/</link>
<description><![CDATA[ <p>This function can validate and parse UK postcode like SW1A 1AA in to formated array.</p> ]]></description>
<pubDate>Mon, 17 Mar 2008 15:11:57 GMT</pubDate>
<guid>http://snipplr.com/view/5464/uk-postcode-parser/</guid>
</item>
<item>
<title>(PHP) Strip punctuation from text. - localhorst</title>
<link>http://snipplr.com/view/5373/strip-punctuation-from-text/</link>
<description><![CDATA[ <p>When processing text for a search engine or analysis tool, code needs to strip out punctuation, formatting, spacing, and control characters to reveal indexable text. In international text there are hundreds of these characters, and some should be removed in one context, but not in another. This tip shows how.</p> ]]></description>
<pubDate>Tue, 11 Mar 2008 19:13:31 GMT</pubDate>
<guid>http://snipplr.com/view/5373/strip-punctuation-from-text/</guid>
</item>
<item>
<title>(PHP) splitting a domain in half - fris</title>
<link>http://snipplr.com/view/5251/splitting-a-domain-in-half/</link>
<description><![CDATA[ <p>My wordpress theme uses the site name in the header (top) and i needed to split it in half , in order to style it correctly in css</p> ]]></description>
<pubDate>Sun, 02 Mar 2008 20:01:34 GMT</pubDate>
<guid>http://snipplr.com/view/5251/splitting-a-domain-in-half/</guid>
</item>
<item>
<title>(PHP) PHP - is_valid_email - wbowers</title>
<link>http://snipplr.com/view/5226/php--isvalidemail/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 28 Feb 2008 05:00:54 GMT</pubDate>
<guid>http://snipplr.com/view/5226/php--isvalidemail/</guid>
</item>
<item>
<title>(PHP) Remove excess whitespaces from string /  Remove espaços em excesso de uma string - rafaelmt</title>
<link>http://snipplr.com/view/4832/remove-excess-whitespaces-from-string---remove-espaos-em-excesso-de-uma-string/</link>
<description><![CDATA[ <p>Remove excess whitespaces from string
Remove espaços em branco em excesso de uma string</p> ]]></description>
<pubDate>Tue, 29 Jan 2008 20:21:31 GMT</pubDate>
<guid>http://snipplr.com/view/4832/remove-excess-whitespaces-from-string---remove-espaos-em-excesso-de-uma-string/</guid>
</item>
<item>
<title>(PHP) check_email_address() email validator - IanLewis</title>
<link>http://snipplr.com/view/3598/checkemailaddress-email-validator/</link>
<description><![CDATA[ <p>Email validation routine Dave Child</p> ]]></description>
<pubDate>Thu, 30 Aug 2007 02:34:58 GMT</pubDate>
<guid>http://snipplr.com/view/3598/checkemailaddress-email-validator/</guid>
</item>
<item>
<title>(PHP) Regex (regular expression) to match a URL - tylerhall</title>
<link>http://snipplr.com/view/2371/regex-regular-expression-to-match-a-url/</link>
<description><![CDATA[ <p>This regular expression matches a URL.</p> ]]></description>
<pubDate>Wed, 21 Mar 2007 12:02:45 GMT</pubDate>
<guid>http://snipplr.com/view/2371/regex-regular-expression-to-match-a-url/</guid>
</item>
<item>
<title>(PHP) PHP Valid Email - gdonald</title>
<link>http://snipplr.com/view/1967/php-valid-email/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 12 Jan 2007 12:55:54 GMT</pubDate>
<guid>http://snipplr.com/view/1967/php-valid-email/</guid>
</item>
<item>
<title>(PHP) Replace URL with link - fugue</title>
<link>http://snipplr.com/view/1892/replace-url-with-link/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 29 Dec 2006 02:14:01 GMT</pubDate>
<guid>http://snipplr.com/view/1892/replace-url-with-link/</guid>
</item>
<item>
<title>(PHP) email validity check with regex - assbach</title>
<link>http://snipplr.com/view/1781/email-validity-check-with-regex/</link>
<description><![CDATA[ <p>check if email address is valid</p> ]]></description>
<pubDate>Sun, 10 Dec 2006 13:36:36 GMT</pubDate>
<guid>http://snipplr.com/view/1781/email-validity-check-with-regex/</guid>
</item>
<item>
<title>(PHP) PHP - Finger PHP Simple Client - whitetiger</title>
<link>http://snipplr.com/view/1606/php--finger-php-simple-client/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 09 Nov 2006 23:55:09 GMT</pubDate>
<guid>http://snipplr.com/view/1606/php--finger-php-simple-client/</guid>
</item>
</channel>
</rss>