<cfset maskedCCnumber=Left(CCnumber,4) & RepeatString("*",8) &
right(CCnumber,4)>


Remember: Amex numbers are 15 digits long.

> -----Original Message-----
> From: Ryan Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 07, 2003 7:56 AM
> To: CF-Talk
> Subject: Replacing characters in a string
> 
> 
> This should be a simple enough one...
> 
> I have a credit card number, 16 digits long, and I want to 
> star (*) out the
> middle 8. How do I do this?
> 
> TIA
> Ryan
> 
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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