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

Popular posts from this blog

server manager error: ADAM.events.xml could not be enumerated.

Cannot access Anywhere Access using domain name?

WMI Failure: Unable to update Local Resource Group