Skip to content

Instantly share code, notes, and snippets.

Created October 27, 2017 15:49
Show Gist options
  • Save anonymous/c33d8a9b8e7edfedb935fc7ce6654cd7 to your computer and use it in GitHub Desktop.
Save anonymous/c33d8a9b8e7edfedb935fc7ce6654cd7 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfset mystring = "Password1234" >
<cfset masked = mystring.replaceAll("(?<=.).(?!$)", "*")>
<cfoutput>#masked#</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment