<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - coldfusion - 7 - htmldocs - 00000606.htm</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T23:38:36</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000606.htm#38486" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000606.htm#28705" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000606.htm#28700" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000606.htm#38486">
		<title>coldfusion/7/htmldocs/00000606.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000606.htm#38486</link>
		<description>It is documented, but by macromedia.  The best book is &quot;Mastering Regular Expressions&quot; publiched by O'Reilly.  Although the book covers regular expressions (RE) as found in Perl, ColdFusion's regular expressions are a subset of Perl's so it covers Coldfusion's as well.  There are some minor differences in RE syntax (how and when to excape characters, for example, and the fact that CF's REs are strings, which means you have to do more escaping in CF), but all-in-all, this is the best book on the subject.  &lt;br /&gt;&lt;br /&gt;In your example, the [  ] is called a &quot;character class&quot;.  In a character class, all characters between the square brackets stand for themselves except   ^   -   ]  \&lt;br /&gt;&lt;br /&gt;If you want to match a circumflex, it must not be in the first position or it must be escaped.  If you want to match a hyphen, right-square-bracket, or backslash you must escape them.</description>
		<dc:creator>a440guy</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-08-08T12:58:14</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000606.htm#28705">
		<title>coldfusion/7/htmldocs/00000606.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000606.htm#28705</link>
		<description>Ah, I found it out myself...&lt;br /&gt;The answer to the question above:  the '-' always creates a range between the character before the - and the character after the -.&lt;br /&gt;I always thought that ranges within [ ] could only be created with a-z and numbers.&lt;br /&gt;Maybe this should be documented somewhere?</description>
		<dc:creator>frinky!!!</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-03-01T07:23:29</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000606.htm#28700">
		<title>coldfusion/7/htmldocs/00000606.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000606.htm#28700</link>
		<description>Can anyone please explain why the results of the refind statements underneath are different, only bacause the '.' (dot) has moved to another place within the regexp?&lt;br /&gt;is this a bug?&lt;br /&gt;&lt;br /&gt;&lt;cfset variables.testword = &quot;abc123_-+%@&quot;&gt;&lt;br /&gt;&lt;cfoutput&gt;&lt;br /&gt;	 REFind(&quot;[^a-z0-9 .-_]&quot;, variables.testword) =&lt;br /&gt;	#REFind(&quot;[^a-z0-9 .-_]&quot;, variables.testword)#  (returns 8)&lt;br /&gt;	&lt;br&gt;&lt;br&gt;&lt;br /&gt;	 REFind(&quot;[^a-z0-9 -_.]&quot;, variables.testword) =&lt;br /&gt;	#REFind(&quot;[^a-z0-9 -_.]&quot;, variables.testword)#  (returns 0?!?)&lt;br /&gt;&lt;/cfoutput&gt;</description>
		<dc:creator>frinky!!!</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-03-01T06:00:54</dc:date>
	</item>
	</rdf:RDF>

