# Format string based on another field

**URL:** https://community.mp3tag.de/t/format-string-based-on-another-field/67595
**Category:** Support
**Created:** [February 20, 2025, 4:49pm UTC](https://community.mp3tag.de/t/format-string-based-on-another-field/67595 "2025-02-20T16:49:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Trev0rDan5](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/b38774/32.png) [@Trev0rDan5](https://community.mp3tag.de/u/Trev0rDan5)
#### Post date: [February 20, 2025, 4:49pm UTC](https://community.mp3tag.de/t/format-string-based-on-another-field/67595/1 "2025-02-20T16:49:53Z")

</div>

Hello all,

I am looking to take the first few characters (up to, and not including, the first space) of the comment section, and put them in the initial key field (so 2A, 2B, 9A, 11A etc)

I guess it'll be a regexp of some kind, but unsure what

 ![Untitled](https://community.mp3tag.de/uploads/default/original/3X/e/b/eb7ce799472940bf363638cedcbbaa9eac1ac08a.png)

Can anyone help?

Cheers!

Trev

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [February 20, 2025, 5:00pm UTC](https://community.mp3tag.de/t/format-string-based-on-another-field/67595/2 "2025-02-20T17:00:23Z")

</div>

Action type: Guess Values  
Source Format: %comment%  
Guessing Pattern: %initialkey% %dummy%

---

<div class="post-metadata">

### Author: ![Trev0rDan5](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/b38774/32.png) [@Trev0rDan5](https://community.mp3tag.de/u/Trev0rDan5)
#### Post date: [February 20, 2025, 6:52pm UTC](https://community.mp3tag.de/t/format-string-based-on-another-field/67595/3 "2025-02-20T18:52:12Z")

</div>

that's the one, cheers!

---

<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: [March 22, 2025, 6:53pm UTC](https://community.mp3tag.de/t/format-string-based-on-another-field/67595/4 "2025-03-22T18:53:02Z")

</div>

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