# Creating RegEx For Replace

**URL:** <https://community.mp3tag.de/t/creating-regex-for-replace/56746>\
**Category:** Support\
**Created:** [March 20, 2022, 5:04pm UTC](https://community.mp3tag.de/t/creating-regex-for-replace/56746 "2022-03-20T17:04:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerrybo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/dec6dc/32.png) [@jerrybo](https://community.mp3tag.de/u/jerrybo)\
**Post date:** [March 20, 2022, 5:04pm UTC](https://community.mp3tag.de/t/creating-regex-for-replace/56746/1 "2022-03-20T17:04:49Z")

</div>

I have a RegEx question. I have a Composer field in the format of _Name (1234 - 5678)_. What I need is a ReegEx, or something similar, to edit the field to just _Name_, (deleting the (...).

I use regex in .NET but for some reason I cannot develop this string.

Jerry B

---

<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:** [March 20, 2022, 5:17pm UTC](https://community.mp3tag.de/t/creating-regex-for-replace/56746/2 "2022-03-20T17:17:00Z")

</div>

You could try:  
`$regexp('Name (1234 - 5678)','\s*\(.*',)`  
or  
`$regexp(%composer%,'\s*\(.*',)`

---

<div class="post-metadata">

**Author:** ![jerrybo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/dec6dc/32.png) [@jerrybo](https://community.mp3tag.de/u/jerrybo)\
**Post date:** [March 20, 2022, 5:23pm UTC](https://community.mp3tag.de/t/creating-regex-for-replace/56746/3 "2022-03-20T17:23:18Z")

</div>

Thanks ohrenkino.

That is a lot simpler than the command I was coming up with.

Jerry B

---

<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:** [April 19, 2022, 5:23pm UTC](https://community.mp3tag.de/t/creating-regex-for-replace/56746/4 "2022-04-19T17:23:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
