<?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>PHP Reference Book Blog &#187; PERL</title>
	<atom:link href="http://www.phpreferencebook.com/tag/perl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpreferencebook.com</link>
	<description>PHP Reference: Beginner to Intermediate PHP5</description>
	<lastBuildDate>Wed, 25 Aug 2010 12:58:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Regular Expression Syntax (RegEx) Sample</title>
		<link>http://www.phpreferencebook.com/samples/regular-expression-syntax/</link>
		<comments>http://www.phpreferencebook.com/samples/regular-expression-syntax/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 05:03:46 +0000</pubDate>
		<dc:creator>Mario Lurig</dc:creator>
				<category><![CDATA[Samples]]></category>
		<category><![CDATA[PCRE]]></category>
		<category><![CDATA[PERL]]></category>
		<category><![CDATA[regular expressions]]></category>
		<category><![CDATA[syntax]]></category>

		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=111</guid>
		<description><![CDATA[The handy Regular Expression Syntax from the PHP book (pages 149-150). Check out the free PDF if you don&#8217;t have it already! Regular Expression Syntax ^ – Start of string $ – End of string . – Any single character ( ) – Group of expressions [] – Item range ( e.g. [afg] means a, [...]]]></description>
			<content:encoded><![CDATA[<p>The handy Regular Expression Syntax from the <a href="http://www.phpreferencebook.com">PHP book</a> (pages 149-150). Check out the <a href="http://www.phpreferencebook.com/pdf">free PDF</a> if you don&#8217;t have it already!</p>
<h3>Regular Expression Syntax</h3>
<p>^ – Start of string<br />
$ – End of string<br />
. – Any single character<br />
( ) – Group of expressions<br />
[] – Item range ( e.g. [afg] means a, f, or g )<br />
[^] – Items not in range ( e.g. [^cde] means not c, d, or e )<br />
- (dash) – character range within an item range ( e.g. [a-z] means a through z )<br />
| (pipe) – Logical or ( e.g. (a|b) means a or b )<br />
? – Zero or one of preceding character/item range<br />
* – Zero or more of preceding character/item range<br />
+ – One or more of preceding character/item range<br />
{integer} – Exactly integer of preceding character/item range ( e.g. a{2} )<br />
{integer,} – Integer or more of preceding character/item range ( e.g. a{2,} )<br />
{integer,integer} – From integer to integer (e.g. a{2,4} means 2 to four of a )<br />
 – Escape character<br />
[:punct:] – Any punctuation<br />
[:space:] – Any space character<br />
[:blank:] – Any space or tab<br />
[:digit:] – Any digit: 0 through 9<br />
[:alpha:] – All letters: a-z and A-Z<br />
[:alnum:] – All digits and letters: 0-9, a-z, and A-Z<br />
[:xdigit:] – Hexadecimal digit<br />
[:print:] – Any printable character<br />
[:upper:] – All uppercase letters: A-Z<br />
[:lower:] – All lowercase letters: a-z</p>
<h3>PERL Compatible (PCRE) only ( preg_*() )</h3>
<p>/ &#8211; delimiter before and after the expression</p>
<h4>Character classes:</h4>
<p>\c – Control character<br />
\s – Whitespace<br />
\S – Not whitespace<br />
\d – Digit (0-9)<br />
\D – Not a digit<br />
\w – Letter, Digit, Underscore [a-zA-Z0-9_]<br />
\W – Not a letter<br />
\x – Hexadecimal digit<br />
\O – Octal digit</p>
<h4>Modifiers:</h4>
<p>i – Case-insensitive<br />
s – Period matches newline<br />
m – ^ and $ match lines<br />
U – Ungreedy matching<br />
e – Evaluate replacement<br />
x – Pattern over several lines</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpreferencebook.com/samples/regular-expression-syntax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RegEx PERL Compatible Character Class \w</title>
		<link>http://www.phpreferencebook.com/corrections/backslash-w/</link>
		<comments>http://www.phpreferencebook.com/corrections/backslash-w/#comments</comments>
		<pubDate>Sat, 31 May 2008 02:11:43 +0000</pubDate>
		<dc:creator>Mario Lurig</dc:creator>
				<category><![CDATA[Corrections]]></category>
		<category><![CDATA[alphanumeric]]></category>
		<category><![CDATA[PCRE]]></category>
		<category><![CDATA[PERL]]></category>
		<category><![CDATA[preg]]></category>
		<category><![CDATA[preg_replace]]></category>
		<category><![CDATA[regular expression]]></category>
		<category><![CDATA[regular expressions]]></category>

		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=13</guid>
		<description><![CDATA[(pg. 150) Book version: \w &#8211; Letter (a-z, A-Z) Correct version: \w &#8211; Letter, Digit, Underscore [a-zA-Z0-9_] This is similar to the syntax for alphanumeric: [:alnum:]]]></description>
			<content:encoded><![CDATA[<h3>(pg. 150)</h3>
<p>Book version:</p>
<p>\w &#8211; Letter (a-z, A-Z)</p>
<p>Correct version:</p>
<p>\w &#8211; Letter, Digit, Underscore [a-zA-Z0-9_]</p>
<p>This is similar to the syntax for alphanumeric: [:alnum:]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpreferencebook.com/corrections/backslash-w/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
