
March 4th, 2004, 08:45 AM
|
|
Registered User
|
|
Join Date: Mar 2004
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
using a $ in a Regular expression in REReplace
Hey another question.
I want to use REReplace to replace an unwanted string (such as "Co.") with "". (Thus removing it from the string). I am trying to use the $ (Dollar Sign) to indicate that it should ONLY be done at the end of the string. However, CF is saying "Error". Here's an example of the code ...
Code:
<cfset #search_string# = REreplaceNoCase(#search_string#, #unwanted[count]#$, "")>
I get this response:
Quote: Invalid CFML construct found on line 36 at column 80.
ColdFusion was looking at the following text: $
The CFML compiler was processing:- an expression beginning with "REreplaceNoCase", on line 36, column 28.This message is usually caused by a problem in the expressions structure.
|
|