# Regular expression to match # and ##/##

**URL:** https://community.mp3tag.de/t/regular-expression-to-match-and/10476
**Category:** Support
**Created:** [May 26, 2010, 8:01pm UTC](https://community.mp3tag.de/t/regular-expression-to-match-and/10476 "2010-05-26T20:01:44Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ikjadoon](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/e480ec/32.png) [@ikjadoon](https://community.mp3tag.de/u/ikjadoon)
#### Post date: [May 26, 2010, 8:01pm UTC](https://community.mp3tag.de/t/regular-expression-to-match-and/10476/1 "2010-05-26T20:01:44Z")

</div>

Hi!

I'm pretty new to MP3Tag. I'm trying to create an action to remove track numbers. I have about 60 or so songs with track numbers, but they are in a variety of formats. The different formats include:

1  
01/04

Using track number 1 out of 4 as an example. I need to use the "Replace" command. I have this so far:

🙂

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [May 26, 2010, 8:32pm UTC](https://community.mp3tag.de/t/regular-expression-to-match-and/10476/2 "2010-05-26T20:32:57Z")

</div>

If you want to use regular expressions you must choose the action  
"Replace **with regular expression**"

But if you only want to remove the track number, just select the tracks, set the Track value to in the tag panel on the left and hit Save ![:mt_save:](https://community.mp3tag.de/uploads/default/original/1X/9a524114a0a7cfb94ed95e08e42778afb83a895f.png ":mt\_save:")

Or use the action "Remove fields" and enter **Track**

---

<div class="post-metadata">

### Author: ![JJ\_Johnson](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jj_johnson/32/67_2.png) [@JJ\_Johnson](https://community.mp3tag.de/u/JJ_Johnson)
#### Post date: [May 26, 2010, 9:07pm UTC](https://community.mp3tag.de/t/regular-expression-to-match-and/10476/3 "2010-05-26T21:07:12Z")

</div>

Or, if you want to "clean up" those track numbers:

_Action type:_ **Format value**  
_Field:_ **TRACK**  
_Format string:_ **$fmtNum(%track%)**

This will make changes such as

01 =\> 1  
01/12 =\> 1  
1/12 =\> 1  
1 of 12 =\> 1

---

<div class="post-metadata">

### Author: ![ikjadoon](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/e480ec/32.png) [@ikjadoon](https://community.mp3tag.de/u/ikjadoon)
#### Post date: [May 27, 2010, 4:50pm UTC](https://community.mp3tag.de/t/regular-expression-to-match-and/10476/4 "2010-05-27T16:50:16Z")

</div>

@dano

It worked! 😃 Thanks a bunch. 🙂

@JJ Johnson

Ooh, thank you! I'm actually reworking my library to have track numbers (but instead of having to pick out which ones do and don't, I just wanted to wipe them). Off to Auto-Tagging! 😃

~Ibrahim~

---

<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:22pm UTC](https://community.mp3tag.de/t/regular-expression-to-match-and/10476/5 "2026-02-09T12:22:25Z")

</div>


