> For the complete documentation index, see [llms.txt](https://chaoses-ib.gitbook.io/directory-opus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chaoses-ib.gitbook.io/directory-opus/manual/file_operations/renaming_files/advanced_rename/rename_modes/standard_wildcard_rename.md).

# Standard Wildcard Rename

The *Standard Wildcard Rename* mode lets you batch rename files using a simple wildcard system. The \* character (asterisk) is used to specify one or more parts of the existing filename that are to be retained in the new name.

![](https://3597805814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3XSZSwWow0fDf6fQJobd%2Fuploads%2Fgit-blob-63a667e0a7beffe05a554b529e04cfb9a96f1af8%2Fstandard_rename.png?alt=media)

In the above example, you can see that the original filenames had a mix of *Img\_* and *IMG\_* prefixes, and the file extensions were also a mix of upper and lower-case.

The **Old name** pattern of *img\_\*.jpg* tells Opus to match any filename beginning with *img\_* and ending with .jpg (case does not matter as the **Case sensitive** option was not enabled). The \* in the pattern is used to mark the portion of the filename that will be carried through to the new name. The **Ignore extension** option has been turned off so that the wildcard will operate on the full filename including the file extension.

You can use as many instances of the \* character in the patterns as you like, as long as there are at least as many in the **Old name** field as there are in the new. For example, if you wanted to preserve the case of the file extension in the above example, you could specify an **Old name** pattern of *img\_\*.\** and *IMG\*.\** for the **New name** pattern.

You can't use this system if you want to change the order of preserved strings (as one asterisk looks very much like another) - to do that, you need to use [*Regular Expressions*](/directory-opus/manual/file_operations/renaming_files/advanced_rename/rename_modes/regular_expressions.md) mode, which lets you refer to preserved strings by number.
