# extracting word from tag

**URL:** https://community.mp3tag.de/t/extracting-word-from-tag/8429
**Category:** Support
**Created:** [June 10, 2009, 2:05pm UTC](https://community.mp3tag.de/t/extracting-word-from-tag/8429 "2009-06-10T14:05:31Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jukos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/90ced4/32.png) [@jukos](https://community.mp3tag.de/u/jukos)
#### Post date: [June 10, 2009, 2:05pm UTC](https://community.mp3tag.de/t/extracting-word-from-tag/8429/1 "2009-06-10T14:05:31Z")

</div>

Hi , have not been able to find a topic quite like what I'm after. I have downloaded podcasts that dont show up properly on my player so would like to modify the Album tag to fix this. the podcast comes with a tag like:Open Arms ep two 02-06-09. What I need to do is remove everything from this tag so that i am left with "two". The "ep" preceeding "two" may be the trick because it represents "episode" and is typically the word before the "two". So if I find "ep" in the string I would know "two" or "three " or whatever episode this podcast is would be the word following and that is the ony word I want to keep in the album tag. Thanks for any suggestions at all.

John

---

<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: [June 10, 2009, 5:54pm UTC](https://community.mp3tag.de/t/extracting-word-from-tag/8429/2 "2009-06-10T17:54:10Z")

</div>

> [@fryman](#):
>
> ... the podcast comes with a tag like:Open Arms ep two 02-06-09. What I need to do is remove everything from this tag so that i am left with "two". The "ep" preceeding "two" may be the trick ...

Assuming there is also a date string at end of the title string I would try something like this regular expression ...

 

**Convert** | **Tag - Filename** | **ALT+1**

 

_Select format string_

 

Format string:  
**$regexp('Open Arms ep two 02-06-09','^.+ ep (.+) \d\d-\d\d-\d\d$',$1)**

 

Preview  
**two.mp3**

 

DD.20090610.2155.CEST

---

<div class="post-metadata">

### Author: ![jukos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/90ced4/32.png) [@jukos](https://community.mp3tag.de/u/jukos)
#### Post date: [June 11, 2009, 1:06pm UTC](https://community.mp3tag.de/t/extracting-word-from-tag/8429/3 "2009-06-11T13:06:53Z")

</div>

> [@DetlevD](#):
>
> Assuming there is also a date string at end of the title string I would try something like this regular expression ...
> 
>  
> 
> **Convert** | **Tag - Filename** | **ALT+1**
> 
>  
> 
> _Select format string_
> 
>  
> 
> Format string:  
> **$regexp('Open Arms ep two 02-06-09','^.+ ep (.+) \d\d-\d\d-\d\d$',$1)**
> 
>  
> 
> Preview  
> **two.mp3**
> 
>  
> 
> DD.20090610.2155.CEST

That works perfectly! Thanks so much, I would love to be able to manipulate this stuff myself but I know I would be investing months of learning and may only use it a couple of times.

Thanks again, John

---

<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:21pm UTC](https://community.mp3tag.de/t/extracting-word-from-tag/8429/4 "2026-02-09T12:21:34Z")

</div>


