<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 30 Aug 2008 06:51:14 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Ken Guest's Blog: Validation in Depth - a retort to using just regular expressions]]></title>
      <guid>http://www.phpdeveloper.org/news/10273</guid>
      <link>http://www.phpdeveloper.org/news/10273</link>
      <description><![CDATA[<p>
<i>Ken Guest</i>, in a response to <a href="http://www.phpguru.org/article/300">another post</a> from a different blogger, has posted some of <a href="http://blogs.linux.ie/kenguest/2008/05/26/validation-in-depth-a-retort-to-using-just-regular-expressions/">his own</a> validation replacements for the regular expression method the other blogger chose.
</p>
<blockquote>
I've noticed that <a href="http://www.phpguru.org/">Richard Heyes</a>, who professes himself to be a php guru, deleted my comment on <a href="http://www.phpguru.org/article/300">his "Some common regular expressions" posting</a> which simply pointed out his expressions didn't quite do the job and suggested a few <A href="http://pear.php.net/">PEAR packages</a> that should be used instead of the expressions that he proffered
</blockquote>
<p>
His examples have the benefit of what he calls "defense in depth" - the functionality to catch a bit more than just a regular expression can alone. His examples include <a href="http://pear.php.net/package/Validate">PEAR_Validate</a> for email addresses, <a href="http://pear.php.net/package/Net_CheckIP2">Net_CheckIP2</a> for IP addresses and the <a href="http://pear.php.net/package/Validate_UK/">Validate_UK</a> package for the sort code and telephone numbers.
</p>]]></description>
      <pubDate>Tue, 27 May 2008 07:58:54 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Eirik Hoem's Blog: Handy online regex tool for PHP, Perl, JS and Python]]></title>
      <guid>http://www.phpdeveloper.org/news/10121</guid>
      <link>http://www.phpdeveloper.org/news/10121</link>
      <description><![CDATA[<p>
<i>Eirik Hoem</i> has <a href="http://blog.eirikhoem.net/index.php/2008/04/29/handy-online-regex-tool-for-php-perl-js-and-python/">pointed out</a> an online tool a coworker shared with him to work with regular expressions for multiple languages.
</p>
<blockquote>
A coworker of mine has been working on a ajax enabled regex tool which lets you evaluate regex expressions in several languages (including PHP PCRE and PHP POSIX) with instant results.
</blockquote>
<p>
<a href="http://regex.larsolavtorvik.com/">The tool</a> lets you put in the string you want to match again and the pattern you want to match with. The results are automatically populated below it, making it easy to fine-tune your expression to only what you want.
</p>]]></description>
      <pubDate>Tue, 06 May 2008 12:09:14 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer Tutorials Blog: Learn regular expressions in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10085</guid>
      <link>http://www.phpdeveloper.org/news/10085</link>
      <description><![CDATA[<p>
On the Developer Tutorials blog, <i>Akash Mehta</i> <a href="http://www.developertutorials.com/blog/php/learn-regular-expressions-in-php-152/">offers some suggestions</a> of resources and methods for learning how to use regular expressions in your PHP applications.
</p>
<blockquote>
When it comes to quickly dealing with large blocks of data, batch processing operations or screen scraping, regular expressions are often the most effective solution. There's just one problem, though - learning them can be as hard as learning a new language altogether. Here's how to get off to a flying start.
</blockquote>
<p>
He points you first in the direction of the preg_* functions then towards a few examples (like with mod_rewrite) and tools to help you understand how things match, like the regex tested extension for firefox and the regular expression <a href="http://www.ilovejackdaniels.com/regular_expressions_cheat_sheet.png">cheat sheet</a> on ILoveJackDaniels.com.
</p>]]></description>
      <pubDate>Thu, 01 May 2008 08:48:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[IBM developerWorks: Mastering regular expressions in PHP, Part 1]]></title>
      <guid>http://www.phpdeveloper.org/news/9359</guid>
      <link>http://www.phpdeveloper.org/news/9359</link>
      <description><![CDATA[<p>
The IBM developerWorks website has <a href="http://www.ibm.com/developerworks/opensource/library/os-php-regex1/index.html?ca=drs-tp0108">posted the first part</a> of a series they've created to help PHP developers become more informed about what regular expressions are and how they can harness their power for their applications.
</p>
<blockquote>
Pattern matching is such a common chore for software that a special shorthand '" regular expressions '" has evolved to make light work of the task. Learn how to use this shorthand in your code here in Part 1 of this "<a href="http://www.ibm.com/developerworks/views/opensource/libraryview.jsp?search_by=mastering+regular+expressions+in+php,">Mastering regular expressions in PHP</a>" series.
</blockquote>
<p>
In this <a href="http://www.ibm.com/developerworks/opensource/library/os-php-regex1/index.html?ca=drs-tp0108">first part</a> of the series, they look at the basics - the idea behind regular expressions, some of the common operators, the PHP functions to use them and example of how to use them to match/split out strings and capture just the data you need from the given input.
</p>]]></description>
      <pubDate>Fri, 04 Jan 2008 15:08:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Gareth Heyes' Blog: Regular expression challenge]]></title>
      <guid>http://www.phpdeveloper.org/news/8873</guid>
      <link>http://www.phpdeveloper.org/news/8873</link>
      <description><![CDATA[<p>
<i>Gareth Heyes</i> has posted <a href="http://www.thespanner.co.uk/2007/10/18/regular-expression-challenge/">another challenge</a> to his blog - this time it involves using a regular expression to convert the inputted string into the output he's given.
</p>
<blockquote>
After the success of my "<a href="http://www.thespanner.co.uk/2007/10/10/a-bit-of-fun/">a bit of fun</a>" challenge, a few people asked for some more challenges. So I was answering a question on a mailing list that I'm a member of and I thought it would be a good topic for a little challenge and help sharpen everyone's regular expression skills.
</blockquote>
<p>
This time, his <a href="http://www.thespanner.co.uk/2007/10/18/regular-expression-challenge/">challenge</a> involves taking the input, rail start/end locations from an array and, via the PHP script given (no regular expression in it, of course) make the output, a sort of JSON formatted message. It's already been answered, but if you want to, try it yourself first then read the answer below the post.
</p>]]></description>
      <pubDate>Fri, 19 Oct 2007 14:48:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Joey's Blog: 8 Practical PHP Regular Expressions]]></title>
      <guid>http://www.phpdeveloper.org/news/8855</guid>
      <link>http://www.phpdeveloper.org/news/8855</link>
      <description><![CDATA[<p>
On his web development blog, <i>Joey</i> has <a href="http://devolio.com/blog/archives/34-8-Practical-PHP-Regular-Expressions.html">posted a new list</a> of eight handy regular expressions you can use in your code for common validations.
</p>
<blockquote>
Here are eight examples of practical PHP regular expressions and techniques that I've used over the past few years using Perl Compatible Regular Expressions. This guide goes over the eight different validation techniques and describes briefly how they work. Usernames, telephone numbers, email addresses, and more.
</blockquote>
<p>
Each of the regular expressions comes complete with an explanation of what it is and the kinds of strings it's looking for. Comments on <a href="http://devolio.com/blog/archives/34-8-Practical-PHP-Regular-Expressions.html">the post</a> have helped even more, finding places where they might break or not catch all possibilities.
</p>]]></description>
      <pubDate>Wed, 17 Oct 2007 10:27:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DotVoid.com: Parsing the user agent string using PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/7182</guid>
      <link>http://www.phpdeveloper.org/news/7182</link>
      <description><![CDATA[<p>
On the Dotvoid.com blog today, there's <a href="http://www.dotvoid.com/view.php?id=68">a new post</a> that shares some handy code to parse out information from the incoming user agent string for the visitors for your site.
</p>
<blockquote>
Recently I experimented a bit with an Apache log file analyzer written in PHP. It's not all that difficult were it not for trying to parse the browser, or user agent, string. [...] For my purposes I don't care much for the operating system details. This is the result so far. I'm still not very satisfied but I thought maybe other people might be interested and maybe help out.
</blockquote>
<p>
He <a href="http://www.dotvoid.com/view.php?id=68">provides the code</a> in the format of an encapsulated PHP function that returns the product they're using, the version number of the browser and other various comments.
</p>]]></description>
      <pubDate>Mon, 29 Jan 2007 15:11:57 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: PHP and MySQL By Example - Sample Chapter]]></title>
      <guid>http://www.phpdeveloper.org/news/7011</guid>
      <link>http://www.phpdeveloper.org/news/7011</link>
      <description><![CDATA[<p>
The Zend Developer Zone has posted <a href="http://devzone.zend.com/node/view/id/1427">a bit of info</a> of special interest to those out there working with PHP and MySQL. Prentice Hall has posted <a href="http://devzone.zend.com/content/pdfs/0131875086_ch12.pdf">a sample chapter</a> of their "PHP and MySQL By Example" book for public consumption.
</p>
<blockquote>
Most developers I know of either love or hate Regular Expressions, me personally, I hate them. Yes, they do the job and usually do it elegantly but it's hard to find a more arcane sub-language than regex.
</blockquote>
<p>
Obviously, the <a href="http://devzone.zend.com/content/pdfs/0131875086_ch12.pdf">sample chapter</a> talks about regular expressions - specifically what they are, what functions in PHP use them, their use, and enough examples to keep you busy for a long time. 
</p>
<p>
Want to share this story with more people? <a href="http://www.digg.com/programming/PHP_and_MySQL_By_Example_Sample_Chapter">Digg it</a>!
</p>]]></description>
      <pubDate>Tue, 02 Jan 2007 10:25:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Tiffany Brown's Blog: A better RegEx pattern for matching e-mail addresses]]></title>
      <guid>http://www.phpdeveloper.org/news/6880</guid>
      <link>http://www.phpdeveloper.org/news/6880</link>
      <description><![CDATA[<p>
Though not specifically related to PHP, I wanted to share <a href="http://tiffanybbrown.com/2006/12/12/a-better-regex-pattern-for-matching-e-mail-addresses/">a helpful tip</a> that <i>Tiffany Brown</i> has posted to her blog today - a nice, compact regular expression to handle the matching of email addresses.
</p>
<blockquote>
A few weeks ago, I posted a regular expression pattern < href="http://tiffanybbrown.com/2006/11/09/a-pattern-for-matching-e-mail-addresses/">for matching e-mail addresses</a>. Below is a more refined version:
</blockquote>
[php]
^[-+.w]{1,64}@[-.w]{1,64}.[-.w]{2,6}$
[/php]
<p>
Not only does it match the traditional email address formats, but it also will match addresses with periods in the name, British domains, and new TLDs like '.travel' or '.museum'.
</p>]]></description>
      <pubDate>Wed, 13 Dec 2006 08:15:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint PHP Blog: The Joy of Regular Expressions [4]]]></title>
      <guid>http://www.phpdeveloper.org/news/6603</guid>
      <link>http://www.phpdeveloper.org/news/6603</link>
      <description><![CDATA[<p>
<i>Harry Fuecks</i> brings the next part of his "Joy of Regular Expressions" series to the SitePoint PHP Blog today with <a href="http://www.sitepoint.com/blogs/2006/10/28/the-joy-of-regular-expressions-4/">part four</a>, building on the previous how-tos: <a href="http://www.phpdeveloper.org/news/6356">part one</a>, <a href="http://www.phpdeveloper.org/news/6375">part two</a>, and <a href="http://www.phpdeveloper.org/news/6380">part three</a>.
</p>
<p>
He looks at a few different topics this time - date checking, making dates more user-friendly, exploding with patterns, and capturing split delimiters. Just like in the previous articles in the series, he <a href="http://www.sitepoint.com/blogs/2006/10/28/the-joy-of-regular-expressions-4/">explains</a> in what kind of situation the expression would be used and the sample code showing how to use it (oh, and the output too).
</p>]]></description>
      <pubDate>Mon, 30 Oct 2006 15:34:00 -0600</pubDate>
    </item>
  </channel>
</rss>
