Help with re-naming

A swapping-ground for Regular Expression syntax

Help with re-naming

Postby stelle » Wed Feb 22, 2017 3:12 am

Okay so i need help with re-naming and dragging specific files from folders.

1. There are 2.000 folders with 3-6 files on average
2. I need only need 1 file from each folder, file with "app" in name of file
3. I also need that file with "app" to be named as folder (think this is done by "Append Folder Name")
4. Think this process of dragging only files with "app" in name can be done with "RegEx" i just need string ?

Thanks in advance, love BRU so far!
stelle
 
Posts: 6
Joined: Mon Feb 20, 2017 12:04 am

Re: Help with re-naming

Postby KenP » Fri Feb 24, 2017 2:51 pm

The easiest way is to filter the files so that in the main window you see only the files containing the work "app".

In the tree view pane select the directory that contains all the folders.

Regex (1)
Match: .*
Replace: #

Filters (12)
Mask: .*app.*
RegEx: Selected
Folders: Deselected
Files: Selected
Subfolders: Selected

Replace (3)
Replace: #
With: <leave this empty>

Append (9)
Name: Suffix

Select all the files.
KenP
 
Posts: 199
Joined: Sat Jul 30, 2016 11:25 am


Return to Regular Expressions