# Removing a slash?

**URL:** <https://community.mp3tag.de/t/removing-a-slash/6935>\
**Category:** Support\
**Created:** [June 11, 2008, 2:47pm UTC](https://community.mp3tag.de/t/removing-a-slash/6935 "2008-06-11T14:47:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielcstein](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/e79b87/32.png) [@danielcstein](https://community.mp3tag.de/u/danielcstein)\
**Post date:** [June 11, 2008, 2:47pm UTC](https://community.mp3tag.de/t/removing-a-slash/6935/1 "2008-06-11T14:47:58Z")

</div>

First off, Mp3tag is bad amazing. Free, great features, etc.

My question:

Many times I will add files to Mp3 Tag. For example, I will add a music folder, which inside of it contains a CD. Often the CD is formatted in a way I do not like, so I use MP3 Tag to fix that. The only thing I have not been able to do with MP3 Tag is figure out how to remove a "/" from the track tag. If there are 20 tracks, every track number is listed as 1/20, 2/20, 3/20. I hate that. I have to manually go in and edit every one to remove the 1/20 and just change it to 1. Then change 2/20 to just 2. I have messed around under convert --\> actions --\> new and have been unable to find the appropriate action type to do what I'm trying to do here. I have tried "replace" in the track field, where the original says "/" and replace with " " but all that does is make the track now say 1 20 instead of 1/20. That doesn't help! I know I'm close but I just can't figure it out. I want it to just say 1 not 1/20 or 1 20! Any suggestions?!

---

<div class="post-metadata">

**Author:** ![moley6knipe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@moley6knipe](https://community.mp3tag.de/u/moley6knipe)\
**Post date:** [June 11, 2008, 2:52pm UTC](https://community.mp3tag.de/t/removing-a-slash/6935/2 "2008-06-11T14:52:01Z")

</div>

[Regular Expressions](https://community.mp3tag.de/t/521/5)

---

<div class="post-metadata">

**Author:** ![danielcstein](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/e79b87/32.png) [@danielcstein](https://community.mp3tag.de/u/danielcstein)\
**Post date:** [June 12, 2008, 4:58pm UTC](https://community.mp3tag.de/t/removing-a-slash/6935/3 "2008-06-12T16:58:53Z")

</div>

This did not help me. If someone would just be kind to directly post the code and action to remove the track problem listed above, that would be great.

I want the track tag to say 1, 2, 3, INSTEAD OF 1/20, 2/20, 3/20. etc

What would the action be and the exact code to perform it?

Thanks.

---

<div class="post-metadata">

**Author:** ![moley6knipe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@moley6knipe](https://community.mp3tag.de/u/moley6knipe)\
**Post date:** [June 12, 2008, 6:23pm UTC](https://community.mp3tag.de/t/removing-a-slash/6935/4 "2008-06-12T18:23:47Z")

</div>

Create an action...

Name of action group: \<\>  
Click New (the yellow star symbol)  
Select action type: "Replace with regular expression"  
Field: TRACK  
Regular expression: ^(\d+)/\d+  
Replace matches with: $1

---

<div class="post-metadata">

**Author:** ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)\
**Post date:** [June 14, 2008, 6:57am UTC](https://community.mp3tag.de/t/removing-a-slash/6935/5 "2008-06-14T06:57:34Z")

</div>

You can also use a Format value action for the field TRACK with format string like

$num(%track%,1)

---

<div class="post-metadata">

**Author:** ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)\
**Post date:** [February 20, 2022, 1:49pm UTC](https://community.mp3tag.de/t/removing-a-slash/6935/6 "2022-02-20T13:49:07Z")

</div>

3 posts were split to a new topic: [Replace slashes with hyphens](https://community.mp3tag.de/t/replace-slashes-with-hyphens/56412)

---

<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:** [March 22, 2022, 1:49pm UTC](https://community.mp3tag.de/t/removing-a-slash/6935/7 "2022-03-22T13:49:49Z")

</div>

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