# regular expressions

**URL:** https://community.mp3tag.de/t/regular-expressions/19272
**Category:** Support
**Created:** [August 25, 2017, 6:28pm UTC](https://community.mp3tag.de/t/regular-expressions/19272 "2017-08-25T18:28:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nico78](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/85e7bf/32.png) [@nico78](https://community.mp3tag.de/u/nico78)
#### Post date: [August 25, 2017, 6:28pm UTC](https://community.mp3tag.de/t/regular-expressions/19272/1 "2017-08-25T18:28:00Z")

</div>

How can I make the name of the file that is:

The rolling stones\_\_paint it black.mp3

"\_\_" = "2 spaces"

Stay

THE ROLLING STONES\_\_Paint It Black.mp3

The between the artist and the name of the song is separated by 2 spaces

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [August 26, 2017, 5:45am UTC](https://community.mp3tag.de/t/regular-expressions/19272/2 "2017-08-26T05:45:09Z")

</div>

> [@nico78](#):
>
> How can I make the name of the file that is:  
> The rolling stones\_\_paint it black.mp3 ...  
> THE ROLLING STONES\_\_Paint It Black.mp3  
> The between the artist and the name of the song is separated by 2 spaces

**$regexp($caps('The rolling stones paint it black'),'^(.+?)(\s\s)(.+?)$','\U$1\E$2$3') $regexp($caps(%\_filename%),'^(.+?)(\s\s)(.+?)$','\U$1\E$2$3') From: 'The rolling stones paint it black' To : 'THE ROLLING STONES Paint It Black'**

DD.20170826.0945.CEST

See also ...  
[/t/6900/1](https://community.mp3tag.de/t/6900/1)  
[/t/6856/1](https://community.mp3tag.de/t/6856/1)  
[/t/6920/1](https://community.mp3tag.de/t/6920/1)

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:26pm UTC](https://community.mp3tag.de/t/regular-expressions/19272/3 "2026-02-09T12:26:58Z")

</div>


