I must confess to being a regex beginner so it might not be the most elegant
way but

<cfset num = "$123,456">
<cfset newnum = rereplace(num,"[^[:digit:]]","","ALL")>
<cfoutput>#num#,#newnum#</cfoutput>

On 3/18/06, Les Mizzell <[EMAIL PROTECTED]> wrote:
>
> Trying to turn $123,456 into 123456
>
> Getting rid of the "$" sign is easy...
>
> #Replace(mynumber, "$", "", "ALL")#
>
> But I'm not sure how to kill the "$" and the "," at the same time with
> the least amount of fuss...
>

--
Mike T
Blog http://www.socialpoints.com/


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235713
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to