Forum Discussion
John_Dodo
Jul 13, 2022Brass Contributor
Rename file using Regex
Hello, I need to bulk rename files usgin regex. I'm very bad with regex 😕 Here is a simplified sample: ...
$source = "blabla"
$target = "blibli"
$files = Get-ChildItem -file -path ".\D...
John_Dodo
Jul 13, 2022Brass Contributor
Great thank you Lain, then if my understanding is right I don't even need to check if the file name actually contains the $source string, the replace method will simply do nothing if it doesn't find it, am I right?
LainRobertson
Jul 13, 2022Silver Contributor