This is a guide to Bulk Rename Utility.

Using Regular Expressions for Renaming

When predefined rules aren't precise enough, regular expressions give you pattern-based control over renaming.

Where regex fits in

Alongside its predefined rename rules, Bulk Rename Utility includes a dedicated regular expression (regex) find-and-replace field. You supply a pattern to match text within each filename, and a replacement string — which can reuse parts of the match using capture groups. The live preview updates as you type, so you can confirm the pattern behaves correctly before applying it.

Always check the preview column first. A regex pattern that's slightly too broad can match more of the filename than intended — the preview is what catches that before any files are actually renamed.

Common patterns

PatternReplacementWhat it doesExample
^IMG_ Photo_ Matches "IMG_" only at the start of the filename and swaps it out. IMG_0451.jpgPhoto_0451.jpg
\s+   (single space) Collapses multiple consecutive spaces or tabs into one space. Report Final.docxReport Final.docx
(.+)\.jpeg$ $1.jpg Captures everything before a .jpeg extension and rebuilds it with .jpg. sunset.jpegsunset.jpg
(\d{4})-(\d{2})-(\d{2}) $3-$2-$1 Captures a YYYY-MM-DD date and reorders it to DD-MM-YYYY using capture groups. 2026-03-14_notes.txt14-03-2026_notes.txt
[^a-zA-Z0-9._-] _ Replaces any character that isn't a letter, digit, dot, underscore, or hyphen with an underscore. Q3 Report (Final)!.pdfQ3_Report__Final__.pdf

Tips for safe regex renaming

Anchor your patterns

Use ^ and $ to match the start or end of a filename specifically, instead of matching anywhere in the string by accident.

Test on a small sample first

Try your pattern on a handful of files inside a copied test folder before running it against your full library.

Keep extensions in mind

A broad pattern can accidentally match and change the file extension. Reference or exclude the extension explicitly when needed.

Use capture groups deliberately

Wrap the parts you want to reuse in parentheses and reference them as $1, $2, and so on in the replacement field.

Before you rename anything

Make sure your resulting filenames are actually safe on Windows.

Read Safe File Naming Tips