# Grabbing Numbers before or after /

**URL:** https://community.mp3tag.de/t/grabbing-numbers-before-or-after/44369
**Category:** Support
**Created:** [January 30, 2019, 3:19am UTC](https://community.mp3tag.de/t/grabbing-numbers-before-or-after/44369 "2019-01-30T03:19:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![johnmillsjr](https://community.mp3tag.de/user_avatar/community.mp3tag.de/johnmillsjr/32/6945_2.png) [@johnmillsjr](https://community.mp3tag.de/u/johnmillsjr)
#### Post date: [January 30, 2019, 3:19am UTC](https://community.mp3tag.de/t/grabbing-numbers-before-or-after/44369/1 "2019-01-30T03:19:58Z")

</div>

Hi folks,

I have recently decided to change my disc-numbering system to use %totaldiscs%.

Right now i use #/# ie 3/4 or 11/14 in %discnumber%

i want to copy '#' ie /# or /## without the slash into %totaldiscs% and then remove the / and numbers after it from %discumber%

i can't use $cut due to the mix of singular and double numbers

Is there away to select numbers before and after a symbol in tag-tag or some other tool?

---

<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: [January 30, 2019, 6:06am UTC](https://community.mp3tag.de/t/grabbing-numbers-before-or-after/44369/2 "2019-01-30T06:06:05Z")

</div>

You can use an action of the type "Guess value"  
Source: %discnumber%  
Pattern: %discnumber%/%totaldiscs%

---

<div class="post-metadata">

### Author: ![johnmillsjr](https://community.mp3tag.de/user_avatar/community.mp3tag.de/johnmillsjr/32/6945_2.png) [@johnmillsjr](https://community.mp3tag.de/u/johnmillsjr)
#### Post date: [January 30, 2019, 7:58am UTC](https://community.mp3tag.de/t/grabbing-numbers-before-or-after/44369/3 "2019-01-30T07:58:34Z")

</div>

Worked like a charm!

Thanks

---

<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:27pm UTC](https://community.mp3tag.de/t/grabbing-numbers-before-or-after/44369/4 "2026-02-09T12:27:53Z")

</div>


