# Regex first character Alphabet only

**URL:** https://community.mp3tag.de/t/regex-first-character-alphabet-only/14502
**Category:** Support
**Created:** [February 28, 2013, 4:34pm UTC](https://community.mp3tag.de/t/regex-first-character-alphabet-only/14502 "2013-02-28T16:34:12Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [June 23, 2023, 5:54am UTC](https://community.mp3tag.de/t/regex-first-character-alphabet-only/14502/6 "2023-06-23T05:54:43Z")

</div>

In general: if you want to rename a folder, then use an action of the type "Format value" for \_DIRECTORY.  
BUT: as you do not want to rename just the current folder but also the parent folder, you will be left with empty folders after the process.  
Only the current folder level can be renamed.  
Also, I would apply a full path like  
`d:\music\1\ %artists% \ %album% (%year%) \ %artist% - %title%.ext`  
in order to get the same starting point.  
(instead of the "1" insert the regular expression)  
And finally, the field ARTISTS is no standard field - there are ARTIST and ALBUMARTIST. Are you sure that you have that field filled in in every track if you reference that in your string?

See also here:

> [@Script for first letter groups for folder names](https://community.mp3tag.de/t/script-for-first-letter-groups-for-folder-names/60390):
>
> There have been a couple of posts on this topic, e.g. [here](https://community.mp3tag.de/t/renaming-create-grouping-directories-of-3-letters/16986), but I thought I'd share my solution to creating a folder grouping of a certain number of letters, using the first letter of a sort field (falling back to main field if empty). This is useful for players that struggle with long lists, like in a car. The formula produces the letter group folder name that you can include in your complete file path when doing a tag - filename action, e.g. "E:\Music\Classical\A-D\Bach, Johann Sebastian..." …

---

_[View the full topic](https://community.mp3tag.de/t/regex-first-character-alphabet-only/14502)._
