>I want to be able to do this with a single regexp, rather than list looping
>over the text and replacing the index of the current loop iteration with
its
>repeatstring('*', len(index)) counterpart - which is slow if I have to do
>this for many text blocks on the same page..
[...]
>would the following work (bearing in mind I'm not great at regexps)?
>
>rereplacenocase(thistext, "#list#", "#rereplace(list, '[^\|]', '*',
>'ALL')#", "ALL")
You may be able to use REFind to get the Pos and Len of the substring
matched by the regexp. I don't think it'd be a one-liner, maybe two
or three, but you wouldn't need a loop.
I haven't tried to do this, but i would imagine that would be a good place
to start.
-Ryan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
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