# How to copy part of one field to another field?

**URL:** <https://community.mp3tag.de/t/how-to-copy-part-of-one-field-to-another-field/62696>\
**Category:** Support\
**Created:** [November 8, 2023, 3:17am UTC](https://community.mp3tag.de/t/how-to-copy-part-of-one-field-to-another-field/62696 "2023-11-08T03:17:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lotus1922](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/48db29/32.png) [@lotus1922](https://community.mp3tag.de/u/lotus1922)\
**Post date:** [November 8, 2023, 3:17am UTC](https://community.mp3tag.de/t/how-to-copy-part-of-one-field-to-another-field/62696/1 "2023-11-08T03:17:48Z")

</div>

In CONTENTGROUP I have multiple pieces of info separated by semicolons thus: %1; %2; %3

Where %2 is not always the same character length from one file to the next (example: one file's %2 might just be "Driving", but another file's %2 might be "Summer, pool").

Regardless of character length, I want to cut all text that %2 encompasses and paste into MOOD, leaving only %1; %3 in CONTENTGROUP.

How do I do that? I have thousands of files to do this to...  
Many thanks in advance!

---

<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:** [November 8, 2023, 6:25am UTC](https://community.mp3tag.de/t/how-to-copy-part-of-one-field-to-another-field/62696/2 "2023-11-08T06:25:17Z")

</div>

A real example is always better than a made-up one.  
The title says that you want to copy the data, the text that you

> [@lotus1922](#):
>
> want to cut all text that %2 encompasses and paste into MOOD

So I take it that you want to move the middle string.  
Try an action of the type "Guess value"  
Source: `$regexp(%contentgroup%,(.*); (.*); (.*),$1; $3==$2)`  
Target string: `%contentgroup%==%mood%`

---

<div class="post-metadata">

**Author:** ![lotus1922](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/48db29/32.png) [@lotus1922](https://community.mp3tag.de/u/lotus1922)\
**Post date:** [November 10, 2023, 3:20am UTC](https://community.mp3tag.de/t/how-to-copy-part-of-one-field-to-another-field/62696/3 "2023-11-10T03:20:34Z")

</div>

It worked, perfect! Thank you so much!!!

---

<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:** [December 10, 2023, 3:21am UTC](https://community.mp3tag.de/t/how-to-copy-part-of-one-field-to-another-field/62696/4 "2023-12-10T03:21:01Z")

</div>

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