# Code error for a capital after a space, dash 6, a space.

**URL:** https://community.mp3tag.de/t/code-error-for-a-capital-after-a-space-dash-6-a-space/16788
**Category:** Support
**Created:** [April 1, 2015, 11:44am UTC](https://community.mp3tag.de/t/code-error-for-a-capital-after-a-space-dash-6-a-space/16788 "2015-04-01T11:44:56Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![sylvain.dmde](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sylvain.dmde](https://community.mp3tag.de/u/sylvain.dmde)
#### Post date: [April 1, 2015, 8:41pm UTC](https://community.mp3tag.de/t/code-error-for-a-capital-after-a-space-dash-6-a-space/16788/5 "2015-04-01T20:41:09Z")

</div>

No, it is a code given to me here [/t/16302/1](https://community.mp3tag.de/t/16302/1)

by Victor Kostas  
Post November 9, 2014, 12:21

I give you but it is good but in the case seen above it is not anymore.

Field: TITLE  
Regular expression:

```
(?:(?<=\s-\s)|^)(.*?)(?=$|\s-\s)

```

Sentence Case  
$caps3($1)  
Result: Dire straits - Sultans of swing

I would like to start a capital sentence, but not at the beginning of each word. And capital at the beginning of ' - '

---

_[View the full topic](https://community.mp3tag.de/t/code-error-for-a-capital-after-a-space-dash-6-a-space/16788)._
