Cold Fusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingCold Fusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old March 4th, 2004, 08:45 AM
schmeckendeugle schmeckendeugle is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 2 schmeckendeugle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingCold Fusion Development > Regular expression in REReplace


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway