Powershell, renaming files with regular expression or other methods
hi there,
i need run script across 2.5k files, rename them slightly.
e.g. 93250917[s077790-3d].jpg should be 93250917.jpg
so need remove brakcets , in between. first few numbers variable length not set amount of digits in between brackets. totally useless when comes regex hoping can me out.
much appreciated.
ok found regex need using http://gskinner.com/regexr/ wonderful site.
so powershell need replace regex \[.*\] nothing.
any appreciated.
Windows Server > Windows PowerShell
Comments
Post a Comment