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]



Reply via email to