Created
October 27, 2017 15:49
-
-
Save anonymous/c33d8a9b8e7edfedb935fc7ce6654cd7 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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