# Extracting 'side', v2.39c

**URL:** https://community.mp3tag.de/t/extracting-side-v2-39c/5729
**Category:** Support
**Created:** [November 13, 2007, 10:59am UTC](https://community.mp3tag.de/t/extracting-side-v2-39c/5729 "2007-11-13T10:59:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [November 13, 2007, 10:59am UTC](https://community.mp3tag.de/t/extracting-side-v2-39c/5729/1 "2007-11-13T10:59:40Z")

</div>

I need a Export script expression to extract the side (e.g. CD) number from directory names such as

40 Grandes Exitos [CD1] [8427328146067]\01 Patotero sentimental.mp3 --\> 1  
40 Grandes Exitos [CD2] [8427328146067]\01 Porteño y bailarín.mp3 --\> 2  
07798108080576d1\_Piazzolla\_Grandes\_del\_tango\01-AudioTrack\_01\_400fa817.flac --\> 1  
07798108080576d2\_Piazzolla\_Grandes\_del\_tango\01-AudioTrack\_01\_7910b619.flac --\> 2

The only thing fixed about the directory name format is that for each CD in an album it differs from the other CDs in only the side number.

I can see that without a script function to find the difference between two strings, this will be tricky!

Thanks.

---

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [November 20, 2007, 7:34pm UTC](https://community.mp3tag.de/t/extracting-side-v2-39c/5729/2 "2007-11-20T19:34:50Z")

</div>

Any suggestions, experts?

---

<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:20pm UTC](https://community.mp3tag.de/t/extracting-side-v2-39c/5729/3 "2026-02-09T12:20:35Z")

</div>


