PowerShell Tips

On 28/05/2024

In Powershell

$String = "François-Demaison!?!#@$%^&*()_+\|}{○<>??/ €$¥£¢ \^$.|?*+()[{ 0123456789"

 

 $String -replace '[^\p{L}\p{Nd}/(/_/_]', '_'

 

powershell

No ratings yet - be the first to rate this.