If you want you're code colours, you'll need to use " instead of '
;o)
In that case you should use:
ReReplaceNoCase('^(// --></script><a href=")[a-zA-Z0-9.\/]+"$','// --></script><a
href="<cfoutput>##application.domain####directory_path##</cfoutput>/"')>
(haven't checked the regular Expression, but you get the idea...
D
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: 10 October 2002 11:08
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] Brain Hurts ...
Hmmm...
Everything after the last replace turns into the hyper link ......
The code colours aren't right in studio though ......
Try putting this in studio and you'll see what I mean
<cfscript>
search_replace = arraynew(2);
search_replace[1][1] = "_border";
search_replace[1][2]
="<cfoutput>##application.domain####directory_path##</cfoutput>/_border";
search_replace[2][1] = "_derived";
search_replace[2][2]
="<cfoutput>##application.domain####directory_path##</cfoutput>/_derived";
search_replace[3][1] = "navigate";
search_replace[3][2]
="<cfoutput>##application.domain####directory_path##</cfoutput>/navigate";
search_replace[4][1] = "images";
search_replace[4][2]
="<cfoutput>##application.domain####directory_path##</cfoutput>/images";
search_replace[5][1] = 'headers';
search_replace[5][2]
="<cfoutput>##application.domain####directory_path##</cfoutput>/headers";
search_replace[6][1] ='// --></script><a href="';
search_replace[6][2] ='// --></script><a
href="<cfoutput>##application.domain####directory_path##</cfoutput>/';
</cfscript>
*************************************************************
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity
to whom they are addressed. If you have received this email
in error please notify [EMAIL PROTECTED]
The views expressed within this email are those of the
individual, and not necessarily those of the organisation
*************************************************************
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]