If you only want to remove CR/LF and tabs
o = REReplace(ThisTag.GeneratedContent,
"[#Chr(13)##Chr(10)##Chr(9)#]", "", "ALL");


if you are on cfmx the regexp can be "[\r\n\t]"

Pascal

-----Original Message-----
From: Andrew Scott [mailto:[EMAIL PROTECTED]
Sent: Fri 9/01/2004 6:20
To: CF-RegEx
Cc:
Subject: RegExp help with removing of specific chars


This has probably been asked before, but I am having trouble with a regExp
removing chr(13) and chr(10) and tabs


o = REReplace(ThisTag.GeneratedContent,
"[[:space:]]{2,}[#Chr(13)##Chr(10)#]{2,}", "", "ALL");


Doesn't seem to remove the linefeed and returns like it is suppose too, any
ideas anyone

Regards
Andrew Scott
Technical Consultant

NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne, Victoria, 3205

Phone: 03 9686 0485  -  Fax: 03 9699 7976   

  _____  

From: Massimo, Tiziana e Federica [mailto:[EMAIL PROTECTED]
Sent: Sunday, 14 December 2003 11:05 PM
To: CF-RegEx
Subject: New UDF and CFCs

Since I never liked the way REFind() handles matches (especially with
subexpressions), I wrote a UDF on top the java.util.regex package:

http://www.cfmentor.com/code/index.cfm?action="">
<http://www.cfmentor.com/code/index.cfm?action="" &id=149

I also assembled a dedicated CFC:

http://www.cfmentor.com/code/index.cfm?action="">
<http://www.cfmentor.com/code/index.cfm?action="" &id=56

This one instead is a wrapper for a bunch of Java's string methods, a few of
them (like split()) accept regexp too:

http://www.cfmentor.com/code/index.cfm?action="">
<http://www.cfmentor.com/code/index.cfm?action="" &id=54

The website is in italian but code, comments and instructions are written in
english

----------------------------
Massimo Foti
Certified Dreamweaver MX Developer
Certified Advanced ColdFusion MX Developer
http://www.massimocorner.com/
----------------------------
  _____
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to