$testing = @("a.txt", "b.txt")
$testing | Select-String???
I would like the output to only contain a, b.
My real example is:
$PackageNames = Get-ChildItem ("$DestinationPath\$ProjectName" + "_2105\" + $ProjectName) -Filter *.dtsx | Select-Object name -ExpandProperty name;
I need to use the content in this variable but without the extensions.
FileInfoclass that has an attributeBaseName, which contains the file name without exension. If that's not your use case, edit the question and explain what kind of patterns you'd like to remove and keep. Can there be input such asab.txt? Ora.doc? How should those be processed?