# Remove characters after / before

**URL:** https://community.mp3tag.de/t/remove-characters-after-before/53365
**Category:** Mac
**Created:** [May 29, 2021, 3:29pm UTC](https://community.mp3tag.de/t/remove-characters-after-before/53365 "2021-05-29T15:29:02Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Blako78](https://community.mp3tag.de/user_avatar/community.mp3tag.de/blako78/32/9383_2.png) [@Blako78](https://community.mp3tag.de/u/Blako78)
#### Post date: [May 29, 2021, 3:29pm UTC](https://community.mp3tag.de/t/remove-characters-after-before/53365/1 "2021-05-29T15:29:02Z")

</div>

Hi guys,

In my tagging process i usually use mixed in key to analyse the tempo and the keys.  
And it's been write in the comments section.  
I got 2 questions about it.

1. I would like to have only one key Example : 9A/9B to 9A

\*\*There is any Action expression which i can remove everything after "/"  
**Or keep only some value I write before.( in the action group section)**

1. **Also any action to copy the same comment section to key section?**

Thank you for you help.

I'm actually remove it manually.

 ![image](https://community.mp3tag.de/uploads/default/original/2X/a/a09b7b8a1ef76270fde19658b7ff742a5e9efa1f.png)

---

<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: [May 29, 2021, 3:55pm UTC](https://community.mp3tag.de/t/remove-characters-after-before/53365/2 "2021-05-29T15:55:57Z")

</div>

> [@Blako78](#):
>
> I would like to have only one key Example : 9A/9B to 9A

Try an action of the type "Replace with regular expression"  
Search string: `/.*`  
Replace string:  
(leave empty)

> [@Blako78](#):
>
> Also any action to copy the same comment section to key section

To copy one field contents to another field, see the [FAQs/HowTos](https://community.mp3tag.de/t/actions-and-batch-operations/967/15)

---

<div class="post-metadata">

### Author: ![Blako78](https://community.mp3tag.de/user_avatar/community.mp3tag.de/blako78/32/9383_2.png) [@Blako78](https://community.mp3tag.de/u/Blako78)
#### Post date: [June 2, 2021, 1:07am UTC](https://community.mp3tag.de/t/remove-characters-after-before/53365/3 "2021-06-02T01:07:50Z")

</div>

hi,  
Just tried the solution with /.\*  
it works perfectly.  
Thank you.

---

<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: [July 2, 2021, 1:08am UTC](https://community.mp3tag.de/t/remove-characters-after-before/53365/4 "2021-07-02T01:08:15Z")

</div>

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