Created
March 10, 2022 20:29
-
-
Save Pome-ro/f9426eab068994ef77f7efb8b1484838 to your computer and use it in GitHub Desktop.
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
Function Remove-Symbols { | |
param( | |
[string] | |
$string | |
) | |
[regex]$reg = "[^\p{L}\p{Nd}]" | |
return $string -replace $reg | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment