Skip to content

Instantly share code, notes, and snippets.

@torgro
Last active October 29, 2015 13:15
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 torgro/66946447f6e92d0c89aa to your computer and use it in GitHub Desktop.
Save torgro/66946447f6e92d0c89aa to your computer and use it in GitHub Desktop.
$charString = ""
foreach($char in "youremail@her.com".ToCharArray())
{
if(([int]$char - 46) -eq 0)
{
$charString += " 0"
}
else
{
$charString += "$(([int]$char - 46))"
}
}
$charString
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment