OK, in reverse order:
2.
I assume you mean the
Bulk Rename Utility at
http://www.bulkrenameutility.co.uk/.
You will need to use the
RegEx (1) section for Regular Expressions, which is explained in
3.8 Regular Expressions on page
30 of the
PDF Manual.
For your specific example for Marriage files:
Match:
^Marriage (.+) (\d\d\d\d) .+ \((.+)\)$
Replace:
Marriage \2 \1 (\3)
The Match means:
^Marriage = match leading 'Marriage '
(.+) = capture multiple chars ending with a space
(\d\d\d\d) = capture four digits ending with a space
.+ = match any chars ending with a space
\((.+)\)$ = capture trailing text within ( parentheses )
The Replace means:
Marriage = use text 'Marriage '
\2 = use 2nd capture of digits and a space
\1 = use 1st capture multiple chars and a space
(\3) = use 3rd capture within parentheses
If you have filenames starting with other than 'Marriage' that need similar treatment then let us know.
1.
Bulk rename of records is achieved with the
Search and Replace Plugin, which has a similar
LUA Pattern Mode.
I advise that you use
File > Backup/Restore > Small Backup before using Plugin just in case!
After using Plugin you can also use
Edit > Undo Plugin Changes before closing FH.
If they are already linked, then the renamed files from above will need a similar rename in the
File field of
Media records.
So having selected
LUA Pattern Mode the expressions will be similar to above but using
% instead of
\:
Search:
\Marriage (.+) (%d%d%d%d) .+ %((.+)%)%.
Replace:
\Marriage %2 %1 (%3).
Notice that they start with
\ because
Media folders can precede the filename, and end with a dot extension separator.
The leading folder names and trailing file extension will remain unaltered.
Now on the
Extra Filters tab, untick every option except
Multimedia Format & Linked File fields, then click
Search & Replace, but
Skip each item to check the correct changes are being made, and finally click
Cancel.
When satisfied the bulk change is what you want then click
Search & Replace and use
Replace and perhaps untick
Confirm every item found.
When the Plugin is closed a
Result Set will list all changes made.
To bulk rename record titles uses a similar technique, but on the
Extra Filters tab, untick every option except
Record Names/Titles and choose the record type from the drop-list to the right.
The
Help & Advice button offers tips and examples, and cross-reference to plugins:understanding_lua_patterns|> Understanding Lua Patterns.
If you are likely to need to repeat those bulk renames then the Plugin has a
Manage Presets option to preserve any number of search & replace settings.