dave, a possible workaround: if the url contains a ?, add the following: &#request.urltoken#
if the url doesn't contain a ?, add the following: ?#request.urltoken# 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: <[EMAIL PROTECTED]> cf.co.uk> cc: Subject: RE: [ cf-dev ] Regex problem 11/09/2003 16:30 Please respond to dev I have tried that on a test url and it seems to work perfectly however it fails to do anything with the following: href="index.cfm?fuseaction=home.content&cmid=60" is the & causing the problem and if so, what needs to be changed in the regex? Cheers Dave At 9/11/2003 16:15, you wrote: >\. Is not what you want. Try [.] instead > >REReplacenocase(fusebox.layout, >'(href="index[.]cfm[^"]+)(")','\1&#request.urltoken#\2', 'all') > > > -----Original Message----- > > From: Dave Phipps [mailto:[EMAIL PROTECTED] > > Sent: 11 September 2003 16:06 > > To: ColdFusion User group > > Subject: [ cf-dev ] Regex problem > > > > > > 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] -- ** 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]
