I would like to rename all directories in the same directory if the directory matches a pattern the pattern to find is
user1 [files.sentfrom.com] -
Directory name is:
user1 [files.sentfrom.com] - Directory-Subject
I want to rename the directory name to say only:
Directory-Subject (this could have different type of text)
Can this be done in regex all at once or do I need a for loop I'm open to another way also.