# Renaming files - characters from end of file to beginning

**URL:** <https://resource.dopus.com/t/renaming-files-characters-from-end-of-file-to-beginning/60334>\
**Category:** Help & Support\
**Tags:** rename\
**Created:** [August 19, 2026, 9:18am UTC](https://resource.dopus.com/t/renaming-files-characters-from-end-of-file-to-beginning/60334 "2026-08-19T09:18:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinjh99](https://resource.dopus.com/letter_avatar_proxy/v4/letter/m/977dab/32.png) [@martinjh99](https://resource.dopus.com/u/martinjh99)\
**Post date:** [August 19, 2026, 9:18am UTC](https://resource.dopus.com/t/renaming-files-characters-from-end-of-file-to-beginning/60334/1 "2026-08-19T09:18:03Z")

</div>

![image](https://resource.dopus.com/uploads/default/original/3X/4/6/465104d2faac048544cca334f1d68723d6d4c22f.png)

Given these files what would be the regex to get the '(pt27)' to the beginning of the file for all files?

---

<div class="post-metadata">

**Author:** ![Jon](https://resource.dopus.com/user_avatar/resource.dopus.com/jon/32/12713_2.png) [@Jon](https://resource.dopus.com/u/Jon)\
**Post date:** [August 19, 2026, 9:33am UTC](https://resource.dopus.com/t/renaming-files-characters-from-end-of-file-to-beginning/60334/2 "2026-08-19T09:33:22Z")

</div>

Old name: `(.*)\s+(\(.*\))$`  
New name: `\2 \1`
