# Extracting a variable

**URL:** <https://community.mp3tag.de/t/extracting-a-variable/45548>\
**Category:** Support\
**Created:** [May 27, 2019, 1:56pm UTC](https://community.mp3tag.de/t/extracting-a-variable/45548 "2019-05-27T13:56:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sparky79](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/919ad9/32.png) [@sparky79](https://community.mp3tag.de/u/sparky79)\
**Post date:** [May 27, 2019, 1:56pm UTC](https://community.mp3tag.de/t/extracting-a-variable/45548/1 "2019-05-27T13:56:56Z")

</div>

Hi,

I'm trying to repair hundreds of track id's after program i trialled messed stuff up.  
Basically i'm wanting to create an action to extract var3 from the example below and write it back into "BEATPORT\_TRACK\_ID"

[https://www.beatport.com/%var1%/%var%2/%var3%](https://www.beatport.com/%25var1%25/%25var%252/%25var3%25)

Thanks.

---

<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:** [May 27, 2019, 4:02pm UTC](https://community.mp3tag.de/t/extracting-a-variable/45548/2 "2019-05-27T16:02:41Z")

</div>

Try an action of the type "Guess value" for the source field  
Target: `https://www.beatport.com/%dummy%/%dummy%/%BEATPORT_TRACK_ID%`

---

<div class="post-metadata">

**Author:** ![sparky79](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/919ad9/32.png) [@sparky79](https://community.mp3tag.de/u/sparky79)\
**Post date:** [May 27, 2019, 4:36pm UTC](https://community.mp3tag.de/t/extracting-a-variable/45548/3 "2019-05-27T16:36:05Z")

</div>

Thank you very much that fixes it.🙂👍

---

<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:** [June 26, 2019, 4:36pm UTC](https://community.mp3tag.de/t/extracting-a-variable/45548/4 "2019-06-26T16:36:05Z")

</div>

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