# Regular Expressions question

**URL:** <https://community.mp3tag.de/t/regular-expressions-question/12627>\
**Category:** Support\
**Created:** [October 25, 2011, 5:48pm UTC](https://community.mp3tag.de/t/regular-expressions-question/12627 "2011-10-25T17:48:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![durrie](https://community.mp3tag.de/user_avatar/community.mp3tag.de/durrie/32/5937_2.png) [@durrie](https://community.mp3tag.de/u/durrie)\
**Post date:** [October 25, 2011, 5:48pm UTC](https://community.mp3tag.de/t/regular-expressions-question/12627/1 "2011-10-25T17:48:22Z")

</div>

> [@Regular Expressions](https://community.mp3tag.de/t/regular-expressions/521/1):
>
> _Regular expression:_ **^\s\*[0-9]+\s\*-\s\***  
> _Replace with:_
> 
> This one will remove the track-number (if followed by a dash) and white space at the beginning of a string  
> (for instance _01 - Come Together_ will become _Come Together_)
> 
> _Regular expression:_ **^\s\*[0-9]+\s+**  
> _Replace with:_
> 
> This one will remove the track-number if followed by a white space  
> (for instance _01 Come Together_ will become _Come Together_)

I've tried to modify this from above to meet my requirements but it only half works...can anyone help?

I want to turn **_joe bloggs-song about you_**...into... **song about you**

I want to remove all text and white space before the - in the title field. So I simply swapped out the numeral group above for the letter group a-z

I created the following action...

_Target_\_TITLE  
_Regular expression:_ ^\s\*[**a-z**]+\s\*-  
_Replace with:_""

This works for one set of text but fails when it encounters more than one word prior to the -

so...

_ **bloggs-song about me** _ is correctly stripped to _ **song about me** _...but...  
_ **joe bloggs-song about me** _ fails to be stripped of anything at all?

Thanks in advance...  
durrie 🙂

---

<div class="post-metadata">

**Author:** ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)\
**Post date:** [October 25, 2011, 7:03pm UTC](https://community.mp3tag.de/t/regular-expressions-question/12627/2 "2011-10-25T19:03:36Z")

</div>

Regular expression: **.+-\s\***   
Replace with:

a dot represents any character in regular expressions

---

<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:23pm UTC](https://community.mp3tag.de/t/regular-expressions-question/12627/3 "2026-02-09T12:23:24Z")

</div>


