how about this:

REReplacenocase(fusebox.layout,
'(href="index\.cfm[A-Z0-9]{0,})(")','\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 problem         
                            
                    11/09/2003                                                         
                            
                    16:06                                                              
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    dev                                                                
                            
                                                                                       
                            
                                                                                       
                            



Hi,

I have the following regex:

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

I am trying to append the #request.urltoken# variable onto the end of any
url containing index.cfm.

Most of the url's look like the following:

index.cfm?fuseaction=home.content&cmid=3

I want this to be converted to:

index.cfm?fuseaction=home.content&cmid=3&CFID=12345&CFTOKEN=123345233

What am I missing from the above regex as it doesn't seem to be working
properly.

The cmid values can be any number not just a single digit.

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