# Delete whole words

**URL:** https://community.mp3tag.de/t/delete-whole-words/17326
**Category:** General Discussion
**Created:** [October 24, 2015, 8:50am UTC](https://community.mp3tag.de/t/delete-whole-words/17326 "2015-10-24T08:50:24Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mikisimone](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/58956e/32.png) [@mikisimone](https://community.mp3tag.de/u/mikisimone)
#### Post date: [October 24, 2015, 8:50am UTC](https://community.mp3tag.de/t/delete-whole-words/17326/1 "2015-10-24T08:50:24Z")

</div>

Hi please help me.

I've this problem i want delete some first words that are in TITLE

Example IN : Orquesta Julio De Caro El Monito

Example OUT: El Monito

The words may be : 1 or 2 or 3

It's possible ?

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [October 24, 2015, 10:10am UTC](https://community.mp3tag.de/t/delete-whole-words/17326/2 "2015-10-24T10:10:31Z")

</div>

you can delete one, two or 3 words if you specify how many words these are.  
Or you define a separator between the data you want to keep and that you want to delete.  
E.g. the Example IN looks like there are 2 blanks before the part you want to keep  
Replace with regular expression:  
Search string: .\*\_\_  
(the \_\_ are 2 blanks)  
Replace string:  
(Leave empty)

---

<div class="post-metadata">

### Author: ![mikisimone](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/58956e/32.png) [@mikisimone](https://community.mp3tag.de/u/mikisimone)
#### Post date: [October 26, 2015, 8:06pm UTC](https://community.mp3tag.de/t/delete-whole-words/17326/3 "2015-10-26T20:06:31Z")

</div>

> [@ohrenkino](#):
>
> you can delete one, two or 3 words if you specify how many words these are.  
> Or you define a separator between the data you want to keep and that you want to delete.  
> E.g. the Example IN looks like there are 2 blanks before the part you want to keep  
> Replace with regular expression:  
> Search string: .\*\_\_  
> (the \_\_ are 2 blanks)  
> Replace string:  
> (Leave empty)

Thank's 'ohrenkino' but i don't know which is complete regex that delete 2 words before valid text  
that i want to keep

Exampe IN : Hi dear ohrenkino  
xample OUT: ohrenkino

---

<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: [October 26, 2015, 9:09pm UTC](https://community.mp3tag.de/t/delete-whole-words/17326/4 "2015-10-26T21:09:13Z")

</div>

> [@mikimouse](#):
>
> ... which is complete regex that delete 2 words before valid text that i want to keep ...

Remove two words at the left side of the TITLE string ...

**$regexp(%TITLE%,'^(.+?\s+){2}',)**

Remove two words at the right side of the TITLE string ...

**$regexp(%TITLE%,'(\s+.+?){2}$',)**

Remove any text at the left side of the TITLE string before the text 'hi'...

**$regexp(%TITLE%,'^.\*(hi.\*)$','$1')**

Remove any text at the right side of the TITLE string behind the text 'hi'...

**$regexp(%TITLE%,'^(.\*hi).\*$','$1')**

DD.20151026.2311.CET

---

<div class="post-metadata">

### Author: ![mikisimone](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/58956e/32.png) [@mikisimone](https://community.mp3tag.de/u/mikisimone)
#### Post date: [October 27, 2015, 9:54am UTC](https://community.mp3tag.de/t/delete-whole-words/17326/5 "2015-10-27T09:54:11Z")

</div>

> [@DetlevD](#):
>
> Remove two words at the left side of the TITLE string ...
> 
> **$regexp(%TITLE%,'^(.+?\s+){2}',)**
> 
> Remove two words at the right side of the TITLE string ...
> 
> **$regexp(%TITLE%,'(\s+.+?){2}$',)**
> 
> Remove any text at the left side of the TITLE string before the text 'hi'...
> 
> **$regexp(%TITLE%,'^.\*(hi.\*)$','$1')**
> 
> Remove any text at the right side of the TITLE string behind the text 'hi'...
> 
> **$regexp(%TITLE%,'^(.\*hi).\*$','$1')**
> 
> DD.20151026.2311.CET

thank's thank's thank's
