very nice
http://www.cflib.org/udf.cfm?ID=477 <http://www.cflib.org/udf.cfm?ID=477>
_____
From: Thomas Chiverton [mailto:[EMAIL PROTECTED]
Sent: 14 January 2004 16:37
To: CF-Talk
Subject: Re: Allow only wanted characters in a string?
On Wednesday 14 Jan 2004 16:30 pm, Ryan Stille wrote:
> What would be an elegant way to strip all but a certain set of characters
> from a string? I know I want to leave alphanumerics, dashes, underscores
rereplace, with all the things to keep in a class, thusly:
this=rereplace(this,^[A-Za-z\-_0-9],'','all')
Ish :-)
--
Tom Chiverton
Advanced ColdFusion Programmer
Tel: +44(0)1749 834997
email: [EMAIL PROTECTED]
BlueFinger Limited
Underwood Business Park
Wookey Hole Road, WELLS. BA5 1AF
Tel: +44 (0)1749 834900
Fax: +44 (0)1749 834901
web: www.bluefinger.com
Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple
Quay, BRISTOL. BS1 6EG.
*** This E-mail contains confidential information for the addressee
only. If you are not the intended recipient, please notify us
immediately. You should not use, disclose, distribute or copy this
communication if received in error. No binding contract will result from
this e-mail until such time as a written document is signed on behalf of
the company. BlueFinger Limited cannot accept responsibility for the
completeness or accuracy of this message as it has been transmitted over
public networks.***
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

