<cfset str = "asd890sad7234(*&">
<cfset blah = rereplace(str, "[^0-9]+", "", "all")>
<cfoutput>#blah#</cfoutput>

----- Original Message -----
From: "Eric Hoffman" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, February 02, 2003 8:21 PM
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
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

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

Reply via email to