# Regular Expressions

**URL:** https://community.mp3tag.de/t/regular-expressions/521
**Category:** Howto
**Created:** [October 16, 2003, 4:47pm UTC](https://community.mp3tag.de/t/regular-expressions/521 "2003-10-16T16:47:29Z")
**Posts on this page:** 1
**Showing post:** 33

<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: [September 17, 2010, 3:02pm UTC](https://community.mp3tag.de/t/regular-expressions/521/33 "2010-09-17T15:02:33Z")

</div>

**Splitting an "Upper Camel Case" string**

The following "Regular Expression" splits an "Upper Camel Case" string into components by inserting a space character before any Word which starts with a capital letter or digit.

Der folgende "Reguläre Ausdruck" teilt eine Zeichenkette mit Binnenmajuskeln in Komponenten auf durch Einfügen eines Leerzeichens vor jedem Wort, das mit einem Großbuchstaben oder einer Ziffer beginnt.

Example  
From:  
"ThisIsThe2ndSongFromD.D.'sFirstAlbum30YearsAgo."  
To:  
"This Is The 2nd Song From D.D.'s First Album 30 Years Ago."

```
$regexp(%_FILENAME%,'(?<!^)(\u\l|(?<=\l)[\u\d])',' $1')

```

DD.20100917.1902.CEST

![](https://community.mp3tag.de/uploads/default/original/2X/2/2d925e7cc0a836863b86021fbe60bca664165c84.png)

Edit.DD.20110816.1848.CEST

![](https://community.mp3tag.de/uploads/default/original/2X/2/2d925e7cc0a836863b86021fbe60bca664165c84.png)

---

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