You access the backreference with \1 or \2 etc.
ReReplace("(.*?)asdf(.*?)", "\1 \2", string)
______________________
steve oliver
cresco technologies, inc.
http://www.crescotech.com
-----Original Message-----
From: Brent Goldman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 10:08 PM
To: CF-Talk
Subject: extracting backreferences from an executed regex
Hi everyone,
As of now, a regex operation doesn't return the backreferences, but
only
the length and the positions of them. What I want to do is extract the
backreferences using the regex.pos[i] and regex.len[i] variables such
that
we can use regex.br[i] to get the backreference.
Does anyone have any tags to do this?
Thanks
-Brent
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists