application.cfm:
<cfset request.globalURL = "http://www.mysite.com";>


regex:
REReplacenocase(fusebox.layout,'(href="#request.globalURL#/index[.]cfm[^"]
+)(")','\1&#request.urltoken#\2',
'all')


Duncan Cumming
IT Manager

http://www.alienationdesign.co.uk
mailto:[EMAIL PROTECTED]
Tel: 0141 575 9700
Fax: 0141 575 9600

Creative solutions in a technical world

----------------------------------------------------------------------
Get your domain names online from:
http://www.alienationdomains.co.uk
Reseller options available!
----------------------------------------------------------------------
----------------------------------------------------------------------


                                                                                       
                            
                    Dave Phipps                                                        
                            
                    <[EMAIL PROTECTED]        To:     ColdFusion User group <[EMAIL 
PROTECTED]>               
                    cf.co.uk>            cc:                                           
                            
                                         Subject:     [ cf-dev ] Regex additional help 
                            
                    13/11/2003                                                         
                            
                    10:35                                                              
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    dev                                                                
                            
                                                                                       
                            
                                                                                       
                            



Hi,

A long time ago I ask the list for some help with some regex of which the
result was this:

REReplacenocase(fusebox.layout,'(href="index[.]cfm[^"]+)(")','
\1&#request.urltoken#\2',
'all')

The client now wishes to be able to use a full URL and therefore I need to
change the above regex to be able to handle a url like this:

http://www.mysite.com/index.cfm

How do I change the above regex to include the full url without specifying
exactly what that url is apart from the index.cfm which will stay the same.

In other words, if the domain changes I don't want to have to go back
through the code and change the above regex.

Any help?

Cheers

Dave


--
** 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]

Reply via email to