# Pattern replace in album be keep some info (1 of 4) to \[1-4\]

**URL:** <https://community.mp3tag.de/t/pattern-replace-in-album-be-keep-some-info-1-of-4-to-1-4/62931>\
**Category:** Support\
**Created:** [November 30, 2023, 8:37pm UTC](https://community.mp3tag.de/t/pattern-replace-in-album-be-keep-some-info-1-of-4-to-1-4/62931 "2023-11-30T20:37:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lou2k7](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/8dc957/32.png) [@Lou2k7](https://community.mp3tag.de/u/Lou2k7)\
**Post date:** [November 30, 2023, 8:37pm UTC](https://community.mp3tag.de/t/pattern-replace-in-album-be-keep-some-info-1-of-4-to-1-4/62931/1 "2023-11-30T20:37:12Z")

</div>

Looking for any help trying to match a pattern but only replace some of it.

match (# of #) and change to [#-#]

e.g. Format would always be like this  
(1 of 4) changing to [1-4]  
or  
(5 of 7) changing to [5-7]

I was going to just replace (space)of(space) with a - but the word OF could be in the album name some where's else that I don't want to change.

thank for you for any help.

---

<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 30, 2023, 8:51pm UTC](https://community.mp3tag.de/t/pattern-replace-in-album-be-keep-some-info-1-of-4-to-1-4/62931/2 "2023-11-30T20:51:44Z")

</div>

Try Convert\>Tag-Tag for whathever field that would be:  
Format string: `$regexp(%fieldame%,\((\d+) of (\d+)\),'['$1-$2']')`

The preview should show whether it works

---

<div class="post-metadata">

**Author:** ![Lou2k7](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/8dc957/32.png) [@Lou2k7](https://community.mp3tag.de/u/Lou2k7)\
**Post date:** [November 30, 2023, 11:17pm UTC](https://community.mp3tag.de/t/pattern-replace-in-album-be-keep-some-info-1-of-4-to-1-4/62931/3 "2023-11-30T23:17:09Z")

</div>

You Rock! I will give it a try!  
awesome support community of people!

---

<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 30, 2023, 11:18pm UTC](https://community.mp3tag.de/t/pattern-replace-in-album-be-keep-some-info-1-of-4-to-1-4/62931/4 "2023-12-30T23:18:05Z")

</div>

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