I am trying to convert strings:
(A XXX)(B YYY)(C ZZZ) etc.
to
XXXYYYZZZ etc.
This works in sed:
echo "(A XXX)(B YYY)(C ZZZ)" | \
sed -n '
{
s/([A-Z]* \([A-Z]*\))/\1/g
p
}
'
but when I put it into rereplace, like:
<cfset construct[LoopCount] = rereplace(#construct[LoopCount]#,
"[A-Z]*", "\([A-Z]*\))/\1/gp", "all")>
I am getting:
\([A-Z]*\))//gp(\([A-Z]*\))//gp
\([A-Z]*\))//gp)\([A-Z]*\))//gp(\([A-Z]*\))//gp
\([A-Z]*\))//gp)\([A-Z]*\))//gp(\( etc.
so I am doing something really wrong.
Please help.
TNX.
Rick.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344283
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm