Powershell RegEx und gci
Aloa,
RegEx *gg*
Verzeichnis: "181106xxxMxy"
- xxx und xy variieren
RegEx dazu: "^181106\d{3}M\d{2}$"
Der RegEx haut hin, sagt der RegEx Tester =).
Die Ausgabe bleibt aber leer.
VG
RegEx *gg*
Verzeichnis: "181106xxxMxy"
- xxx und xy variieren
RegEx dazu: "^181106\d{3}M\d{2}$"
get-childitem "c:\testordner" -recurse -depth 2 -ErrorAction SilentlyContinue | ?($_.Name -match $regex) | %{ write-host $_.FullName }
Der RegEx haut hin, sagt der RegEx Tester =).
Die Ausgabe bleibt aber leer.
VG
Please also mark the comments that contributed to the solution of the article
Content-Key: 392487
Url: https://administrator.de/contentid/392487
Printed on: October 2, 2023 at 03:10 o'clock
3 Comments
Latest comment