<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List -  Regular expression syntax</title>
    <link>https://forums.adobe.com/community/coldfusion/documentation?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Mon, 04 Feb 2013 07:57:55 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2013-02-04T07:57:55Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re:  Regular expression syntax</title>
      <link>https://forums.adobe.com/message/5045402?tstart=0#5045402</link>
      <description>&lt;!-- [DocumentBodyStart:4ae78ed6-1536-457f-8442-9145505735b7] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;FFS! Useless comment system:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cfdump var=#rematch('[a\-c]','abc-123_')#&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:4ae78ed6-1536-457f-8442-9145505735b7] --&gt;&lt;img src='/beacon?t=1415921447441' /&gt;</description>
      <pubDate>Mon, 04 Feb 2013 07:57:55 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/5045402?tstart=0#5045402</guid>
      <dc:date>2013-02-04T07:57:55Z</dc:date>
      <clearspace:dateToText>1 year 9 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re:  Regular expression syntax</title>
      <link>https://forums.adobe.com/message/5045401?tstart=0#5045401</link>
      <description>&lt;!-- [DocumentBodyStart:8c80d6e5-337d-4f10-ac87-f2f3bb25e215] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;This is incorrect: &lt;u&gt;"To include a hyphen &lt;span aria-label="Minus" class="emoticon-inline emoticon_minus" style="height:16px;width:16px;"&gt;&lt;/span&gt; in the brackets of a character set as a literal character, you cannot escape it as you can other special characters because ColdFusion always interprets a hyphen as a range indicator."&lt;/u&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You CAN escape the hyphen in a character class.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This can be demonstrated with:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Were the hyphen acting as a range, there would be five items in the array &lt;a class="" href="https://forums.adobe.com/'a','b','c','-','_'"&gt;&lt;/a&gt; but since it is literal there are only the three.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:8c80d6e5-337d-4f10-ac87-f2f3bb25e215] --&gt;</description>
      <pubDate>Mon, 04 Feb 2013 07:56:32 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/5045401?tstart=0#5045401</guid>
      <dc:date>2013-02-04T07:56:32Z</dc:date>
      <clearspace:dateToText>1 year 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re:  Regular expression syntax</title>
      <link>https://forums.adobe.com/message/4514084?tstart=0#4514084</link>
      <description>&lt;!-- [DocumentBodyStart:1fa571ed-acd0-4dc2-89eb-cbc6fe8bd0c6] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;&lt;strong&gt;until the empty string &lt;span style="color: #3366ff;"&gt;before &lt;/span&gt;&amp;#8220;o&amp;rdquo; is matched &lt;/strong&gt;should be &lt;strong&gt;until the empty string &lt;span style="color: #3366ff;"&gt;after &lt;/span&gt;&amp;#8220;o&amp;rdquo; is matched&lt;/strong&gt;.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;For &lt;strong&gt;(?m)&lt;/strong&gt;,&lt;span style="color: #3366ff;"&gt;&lt;strong&gt; reFind("(?m)^two", "one#chr(10)#two")&lt;/strong&gt;&lt;/span&gt; should return &lt;strong&gt;5&lt;/strong&gt; instead of &lt;strong&gt;4&lt;/strong&gt; because &lt;span style="color: #3366ff;"&gt;&lt;strong&gt;chr(10)&lt;/strong&gt;&lt;/span&gt; counts.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Escape Sequence &lt;span style="color: #3366ff;"&gt;&lt;strong&gt;\\x&lt;/strong&gt;&lt;/span&gt; should be &lt;span style="color: #3366ff;"&gt;&lt;strong&gt;\x&lt;span style="color: #000000;"&gt;dd&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;. (&lt;strong&gt;d&lt;/strong&gt; can have a hex value from &lt;strong&gt;0&lt;/strong&gt; to &lt;strong&gt;f&lt;/strong&gt;.)&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Example of &lt;span style="color: #3366ff;"&gt;&lt;strong&gt;\x&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #3366ff;"&gt;&lt;strong&gt;&amp;lt;cfoutput&amp;gt;#reFind("\x43", "Adobe ColdFusion 10")#&amp;lt;/cfoutput&amp;gt;&lt;/strong&gt;&lt;/span&gt; returns &lt;strong&gt;7&lt;/strong&gt;.&lt;/p&gt;&lt;p&gt;&lt;span style="color: #3366ff;"&gt;&lt;strong&gt;&amp;lt;cfoutput&amp;gt;#reFind("\x46", "Adobe ColdFusion 10")#&amp;lt;/cfoutput&amp;gt;&lt;/strong&gt;&lt;/span&gt; returns &lt;strong&gt;11&lt;/strong&gt;.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:1fa571ed-acd0-4dc2-89eb-cbc6fe8bd0c6] --&gt;</description>
      <pubDate>Fri, 22 Jun 2012 16:24:57 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4514084?tstart=0#4514084</guid>
      <dc:date>2012-06-22T16:24:57Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Regular expression syntax</title>
      <link>https://forums.adobe.com/message/4514023?tstart=0#4514023</link>
      <description>&lt;!-- [DocumentBodyStart:e7e5a9c6-58ff-4c80-ad8b-b71400886f6e] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;&lt;span&gt;This question was posted in response to the following article: &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSc3ff6d0ea77859461172e0811cbec0a38f-7ffb.html" rel="nofollow"&gt;http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSc3ff6d0ea77859461172e0811cbec0a38 f-7ffb.html&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:e7e5a9c6-58ff-4c80-ad8b-b71400886f6e] --&gt;</description>
      <pubDate>Fri, 22 Jun 2012 16:24:57 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4514023?tstart=0#4514023</guid>
      <dc:date>2012-06-22T16:24:57Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

