actually, it does do back reference for REGXPs. use {} to denote the
reference, and use \1...\n to reference them in your replacement string.
chris olive, cio
cresco technologies
[EMAIL PROTECTED]
http://www.crescotech.com
-----Original Message-----
From: BORKMAN Lee [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 19, 2000 7:23 PM
To: CF-Talk
Subject: RE: disappearing form variables
Yes, perhaps. But it's a pretty lame implementation of Regular Expressions,
missing many of the most important parts, like the ability to include the
FOUND string in the REPLACE string.
For example,
There is no easy way to turn this:
<BOLD>some text which might say anything</BOLD>
into this:
<EM>some text which might say anything</EM>
There's also no 'non-greedy' searching.
Same criticisms apply for the rereplace() functions.
For complex (ie really useful) RegExp operations, put your files on a UNIX
box and use any UNIX editor, OR get a copy of UltraEdit, or some similar
programmers' editor. I normally use CFStudio, but when there's some
heavy-duty replacing to do, I use UltraEdit.
Just my two-bits...
Lee (Bjork) Borkman
http://bjork.net ColdFusion Tags by Bjork
-----Original Message-----
From: Jann VanOver [mailto:[EMAIL PROTECTED]]
Whoa there -- Studio DOES do wildcard search and replace! It even does
(it's own version of) Regular Expressions! Take a look at "EXTENDED" search
and replace!
> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> You might hit some includes or some cflocations that way, though. Too bad
> Studio won't do wildcard searches.
IMPORTANT NOTICE:
This e-mail and any attachment to it is intended only to be read or used by
the named addressee. It is confidential and may contain legally privileged
information. No confidentiality or privilege is waived or lost by any
mistaken transmission to you. If you receive this e-mail in error, please
immediately delete it from your system and notify the sender. You must not
disclose, copy or use any part of this e-mail if you are not the intended
recipient. The RTA is not responsible for any unauthorised alterations to
this e-mail or attachment to it.
----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]