Skip to content

Instantly share code, notes, and snippets.

@jkatzer
Created September 5, 2013 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkatzer/6448481 to your computer and use it in GitHub Desktop.
Save jkatzer/6448481 to your computer and use it in GitHub Desktop.
<cfset new_phone = Replace(phone,'-','')>
<cfset new_phone = Replace(new_phone,' ','')>
<cfset new_phone = "(#left(new_phone,3)#) #mid(new_phone,4,3)#-#right(new_phone,4)#" >
#new_phone#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment