# What's missing for this regex replace expression? DISCNUMBER "1 / 2" or "2 / 2" etc

**URL:** <https://community.mp3tag.de/t/whats-missing-for-this-regex-replace-expression-discnumber-1-2-or-2-2-etc/62299>\
**Category:** Support\
**Created:** [October 5, 2023, 4:20pm UTC](https://community.mp3tag.de/t/whats-missing-for-this-regex-replace-expression-discnumber-1-2-or-2-2-etc/62299 "2023-10-05T16:20:53Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [October 5, 2023, 4:59pm UTC](https://community.mp3tag.de/t/whats-missing-for-this-regex-replace-expression-discnumber-1-2-or-2-2-etc/62299/4 "2023-10-05T16:59:31Z")

</div>

You can try it with  
`(\d+).*/.*\d+`

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

"Any character" can also be "no character".  
Therefore it matches the number 1 from  
`1/2`  
as well as in  
`1 / 2`

Please be aware that you can not undo this step.  
The information about how many discs your current album has (2 in the above example) is gone after appying this regular expression. It only remains the discnumber itself.

---

_[View the full topic](https://community.mp3tag.de/t/whats-missing-for-this-regex-replace-expression-discnumber-1-2-or-2-2-etc/62299)._
