? is a regex operator so you need to escape it with a \

Steve

-----Original Message-----
From: Giles Roadnight [mailto:[EMAIL PROTECTED]]
Sent: 19 February 2003 16:27
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] Simple regular expression problem


Hi guys

I am trying to format a string and use it as a filed name so I need to
get rid of all non alpha characters. I am trying to use urlencodedformat
then replace all % and the two following characters (the numbers).

So far all I have is this:

<cfset request.fieldName =
rereplace(urlencodedformat(request.fieldtitle),"%??","","All")>

but this just removes the % and not the two characters after it.

Thanks


Giles Roadnight
http://giles.roadnight.name


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