# 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:** 1
**Showing post:** 2

<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)

---

_[View the full topic](https://community.mp3tag.de/t/regular-expressions/19272)._
