<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: The Joy of Regular Expressions [4]</title>
	<atom:link href="http://www.sitepoint.com/blogs/2006/10/28/the-joy-of-regular-expressions-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2006/10/28/the-joy-of-regular-expressions-4/</link>
	<description>News, opinion, and fresh thinking for web developers and designers. The official podcast of sitepoint.com.</description>
	<lastBuildDate>Mon, 23 Nov 2009 01:39:24 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Anonymous</title>
		<link>http://www.sitepoint.com/blogs/2006/10/28/the-joy-of-regular-expressions-4/comment-page-1/#comment-847167</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 11 Dec 2008 17:55:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1754#comment-847167</guid>
		<description>&lt;strong&gt;şişlşlşlşlşl  lşlş lş&lt;/strong&gt;&lt;code&gt;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><strong>şişlşlşlşlşl  lşlş lş</strong><code></code></p>]]></content:encoded>
	</item>
	<item>
		<title>By: HarryF</title>
		<link>http://www.sitepoint.com/blogs/2006/10/28/the-joy-of-regular-expressions-4/comment-page-1/#comment-76898</link>
		<dc:creator>HarryF</dc:creator>
		<pubDate>Tue, 31 Oct 2006 08:31:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1754#comment-76898</guid>
		<description>&lt;blockquote&gt;
Interesting post, but I’m not sure I see the usefulness in using regular expressions to parse user friendly dates, when the built in function strtotime is programmed to accept a wide variety of date formats.
&lt;/blockquote&gt;

Was waiting for someone to mention strtotime() ;) I guess I should have mentioned it.

The main point here was using examples that are easy to follow, so we can focus on the regular expressions and the behaviour of PHP&#039;s preg_* functions.

And strtotime() is sometimes more than you want - do you really want users to be able submit everything strtotime() supports? And sometimes it doesn&#039;t quite support the format you desire e.g. &quot;month/day/year&quot; is common in the US but Europe generally uses &quot;day/month/year&quot;.

Anyway - these blogs will eventually become and article so will make sure to mention it in the re-write.</description>
		<content:encoded><![CDATA[<blockquote><p>
Interesting post, but I’m not sure I see the usefulness in using regular expressions to parse user friendly dates, when the built in function strtotime is programmed to accept a wide variety of date formats.
</p></blockquote>
<p>Was waiting for someone to mention strtotime() ;) I guess I should have mentioned it.</p>
<p>The main point here was using examples that are easy to follow, so we can focus on the regular expressions and the behaviour of PHP&#8217;s preg_* functions.</p>
<p>And strtotime() is sometimes more than you want &#8211; do you really want users to be able submit everything strtotime() supports? And sometimes it doesn&#8217;t quite support the format you desire e.g. &#8220;month/day/year&#8221; is common in the US but Europe generally uses &#8220;day/month/year&#8221;.</p>
<p>Anyway &#8211; these blogs will eventually become and article so will make sure to mention it in the re-write.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: dreamscape</title>
		<link>http://www.sitepoint.com/blogs/2006/10/28/the-joy-of-regular-expressions-4/comment-page-1/#comment-76734</link>
		<dc:creator>dreamscape</dc:creator>
		<pubDate>Mon, 30 Oct 2006 22:42:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1754#comment-76734</guid>
		<description>Interesting post, but I&#039;m not sure I see the usefulness in using regular expressions to parse user friendly dates, when the built in function strtotime is programmed to accept a wide variety of date formats.

[code]php&gt; // To get base reading 
php&gt; echo strtotime(&#039;2006-10-28&#039;);
1162008000
php&gt; echo strtotime(&#039;28th Oct 2006&#039;);
1162008000
php&gt; echo strtotime(&#039;Oct 28th 2006&#039;);
1162008000
php&gt; echo strtotime(&#039;October 28, 2006&#039;);
1162008000
php&gt; echo strtotime(&#039;10/28/06&#039;);
1162008000
php&gt; // and on and on[/code]</description>
		<content:encoded><![CDATA[<p>Interesting post, but I&#8217;m not sure I see the usefulness in using regular expressions to parse user friendly dates, when the built in function strtotime is programmed to accept a wide variety of date formats.</p>
<p>[code]php&gt; // To get base reading<br />
php&gt; echo strtotime('2006-10-28');<br />
1162008000<br />
php&gt; echo strtotime('28th Oct 2006');<br />
1162008000<br />
php&gt; echo strtotime('Oct 28th 2006');<br />
1162008000<br />
php&gt; echo strtotime('October 28, 2006');<br />
1162008000<br />
php&gt; echo strtotime('10/28/06');<br />
1162008000<br />
php&gt; // and on and on[/code]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: HarryF</title>
		<link>http://www.sitepoint.com/blogs/2006/10/28/the-joy-of-regular-expressions-4/comment-page-1/#comment-76435</link>
		<dc:creator>HarryF</dc:creator>
		<pubDate>Mon, 30 Oct 2006 08:23:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1754#comment-76435</guid>
		<description>&lt;blockquote&gt;
who write line breaks with a space in them
&lt;/blockquote&gt;

That&#039;s a good point. It should probably also use the /i pattern modifier for people using upper case. Wanted to keep the regex short to explain though.

Thanks Kevin - was working for me: hadn&#039;t spotted the problem</description>
		<content:encoded><![CDATA[<blockquote><p>
who write line breaks with a space in them
</p></blockquote>
<p>That&#8217;s a good point. It should probably also use the /i pattern modifier for people using upper case. Wanted to keep the regex short to explain though.</p>
<p>Thanks Kevin &#8211; was working for me: hadn&#8217;t spotted the problem</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Yank</title>
		<link>http://www.sitepoint.com/blogs/2006/10/28/the-joy-of-regular-expressions-4/comment-page-1/#comment-76295</link>
		<dc:creator>Kevin Yank</dc:creator>
		<pubDate>Mon, 30 Oct 2006 00:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1754#comment-76295</guid>
		<description>&lt;blockquote&gt;The link to Joy of REGEX [3] is broken…

Thanks for this great series.&lt;/blockquote&gt;

Thanks, Paul. &lt;del datetime=&quot;2006-10-30T04:11:20+00:00&quot;&gt;We don&#039;t know what happened to part 3, but we&#039;ve recreated it from an archived copy. Do let us know if you notice any other missing blog posts! :(&lt;/del&gt;&lt;ins datetime=&quot;2006-10-30T04:11:20+00:00&quot;&gt;Found the problem. The post was accidentally marked as &quot;private&quot;.&lt;/ins&gt;</description>
		<content:encoded><![CDATA[<blockquote><p>The link to Joy of REGEX [3] is broken…</p>
<p>Thanks for this great series.</p></blockquote>
<p>Thanks, Paul. <del datetime="2006-10-30T04:11:20+00:00">We don&#8217;t know what happened to part 3, but we&#8217;ve recreated it from an archived copy. Do let us know if you notice any other missing blog posts! :(</del><ins datetime="2006-10-30T04:11:20+00:00">Found the problem. The post was accidentally marked as &#8220;private&#8221;.</ins></p>]]></content:encoded>
	</item>
	<item>
		<title>By: b1ind</title>
		<link>http://www.sitepoint.com/blogs/2006/10/28/the-joy-of-regular-expressions-4/comment-page-1/#comment-75802</link>
		<dc:creator>b1ind</dc:creator>
		<pubDate>Sat, 28 Oct 2006 22:52:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1754#comment-75802</guid>
		<description>Sorry, I forgot to escape everything.

I write breaks as &lt;code&gt;&lt;br /&gt;&lt;/code&gt;

&lt;code&gt;preg_split(&#039;#&lt;br/?&gt;#&#039;,$comment)&lt;/code&gt; could be changed to: &lt;code&gt;preg_split(&#039;#&lt;br(?: ?/)?&gt;#&#039;,$comment)&lt;/code&gt; to accommodate this.  Hopefully, this attempt will work.  Otherwise I give up!</description>
		<content:encoded><![CDATA[<p>Sorry, I forgot to escape everything.</p>
<p>I write breaks as <code>&lt;br /&gt;</code></p>
<p><code>preg_split('#&lt;br/?&gt;#',$comment)</code> could be changed to: <code>preg_split('#&lt;br(?: ?/)?&gt;#',$comment)</code> to accommodate this.  Hopefully, this attempt will work.  Otherwise I give up!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: b1ind</title>
		<link>http://www.sitepoint.com/blogs/2006/10/28/the-joy-of-regular-expressions-4/comment-page-1/#comment-75798</link>
		<dc:creator>b1ind</dc:creator>
		<pubDate>Sat, 28 Oct 2006 22:48:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1754#comment-75798</guid>
		<description>Nifty article, but users might need to watch out for people (like me) who write line breaks with a space in them (eg: &lt;br /&gt;). &lt;code&gt;preg_split(&#039;#&lt;br /&gt;#&#039;,$comment)&lt;/code&gt; could be changed to: &lt;code&gt;preg_split(&#039;#&lt;br /&gt;#&#039;,$comment)&lt;/code&gt; to accommodate this.

I would love it if you would get into some of the possibilities of recursive regexs in a future article.</description>
		<content:encoded><![CDATA[<p>Nifty article, but users might need to watch out for people (like me) who write line breaks with a space in them (eg: <br />). <code>preg_split('#<br />#',$comment)</code> could be changed to: <code>preg_split('#<br />#',$comment)</code> to accommodate this.</p>
<p>I would love it if you would get into some of the possibilities of recursive regexs in a future article.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: irkengir</title>
		<link>http://www.sitepoint.com/blogs/2006/10/28/the-joy-of-regular-expressions-4/comment-page-1/#comment-75676</link>
		<dc:creator>irkengir</dc:creator>
		<pubDate>Sat, 28 Oct 2006 17:09:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1754#comment-75676</guid>
		<description>I have to say: I am feeling the joy.</description>
		<content:encoded><![CDATA[<p>I have to say: I am feeling the joy.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.sitepoint.com/blogs/2006/10/28/the-joy-of-regular-expressions-4/comment-page-1/#comment-75524</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sat, 28 Oct 2006 10:06:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1754#comment-75524</guid>
		<description>thanks harry, your series of reg expressions will i hope make me a guru with reg expressions... well, maybe get me past the newbie stage anyways ;)

dr livingston.</description>
		<content:encoded><![CDATA[<p>thanks harry, your series of reg expressions will i hope make me a guru with reg expressions&#8230; well, maybe get me past the newbie stage anyways ;)</p>
<p>dr livingston.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.sitepoint.com/blogs/2006/10/28/the-joy-of-regular-expressions-4/comment-page-1/#comment-75498</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sat, 28 Oct 2006 08:10:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1754#comment-75498</guid>
		<description>The link to Joy of REGEX [3] is broken...

Thanks for this great series.</description>
		<content:encoded><![CDATA[<p>The link to Joy of REGEX [3] is broken&#8230;</p>
<p>Thanks for this great series.</p>]]></content:encoded>
	</item>
</channel>
</rss>
