# Need help - remove text with Parentheses from filename

**URL:** https://community.mp3tag.de/t/need-help-remove-text-with-parentheses-from-filename/14888
**Category:** General Discussion
**Created:** [July 7, 2013, 2:23pm UTC](https://community.mp3tag.de/t/need-help-remove-text-with-parentheses-from-filename/14888 "2013-07-07T14:23:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![gsgiri](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/f17d59/32.png) [@gsgiri](https://community.mp3tag.de/u/gsgiri)
#### Post date: [July 7, 2013, 2:23pm UTC](https://community.mp3tag.de/t/need-help-remove-text-with-parentheses-from-filename/14888/1 "2013-07-07T14:23:18Z")

</div>

Need help - I am new to mp3tag. Using 2.57 version.

I have many files that have characters with the pattern as '(\*)'. By \* I meant non space characters. I want to remove the text pattern from from the filename.

Tried two ways but both remained unsuccessful:-

1. Convert filename to filename -  
Old pattern: %1  
New pattern: $left(%1,$strchr(%1%,'('))

2. New action -  
Field: \_FILENAME  
Regular expression: ^(.+)\s('('.+')')$  
Replace matches with: %1

Note: cannot convert tag %title% to filename because title also contains the same pattern.

Could anyone please help in getting the pattern removed from the filename?

---

<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: [July 7, 2013, 2:32pm UTC](https://community.mp3tag.de/t/need-help-remove-text-with-parentheses-from-filename/14888/2 "2013-07-07T14:32:14Z")

</div>

Please supply a real filename and not just a "pattern".  
E.g.  
If I had a filename like  
My ex(ploded) girlfriend.mp3  
I could get rid of the brackets with the converter filename - Filename and the mask:  
Source: %1(%2)%3  
Target: %1%2%3

---

<div class="post-metadata">

### Author: ![gsgiri](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/f17d59/32.png) [@gsgiri](https://community.mp3tag.de/u/gsgiri)
#### Post date: [August 3, 2013, 1:56pm UTC](https://community.mp3tag.de/t/need-help-remove-text-with-parentheses-from-filename/14888/3 "2013-08-03T13:56:05Z")

</div>

Thank you very much. Your reply helped and works!!. I tried it earlier but didn't work. After your reply I tried again only on one file with the matching pattern and it worked.

I think, I figured out the mistake I was making. I selected a bunch of files and was trying to apply the converter. It works only when files have matching pattern. It is my bad, that I was expecting that it will find that matching pattern in all the selected files and then converted whichever it finds.

Thanks again.
