Doom of the clan of RegEx ninjas says:
string = rereplace(string, '[^[:digit:]]', '', 'all');
grashopper.

To train at the Dojo of the Regex:
http://www.houseoffusion.com/cf_lists/index.cfm?method=threads&forumid=21



--  Ben Doom
    Programmer & General Lackey
    Moonbow Software, Inc

: -----Original Message-----
: From: Eric Hoffman [mailto:[EMAIL PROTECTED]]
: Sent: Sunday, February 02, 2003 8:22 PM
: To: CF-Talk
: Subject: Strip characters?
:
:
: Is there a clean and easy way to simply strip all characters from a
: field...so only integers remain?  A custom tag or popular reg ex before
: I reinvent the wheel?
:
: Regards,
:
: Eric J Hoffman
: DataStream Connexion
: www.datastreamconnexion.com
: Delivering Creative Data Solutions
:
:
:
: 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to