# Replace(x,y,z) only admits 31 items to replace

**URL:** https://community.mp3tag.de/t/replace-x-y-z-only-admits-31-items-to-replace/58968
**Category:** Support
**Created:** [November 4, 2022, 9:03pm UTC](https://community.mp3tag.de/t/replace-x-y-z-only-admits-31-items-to-replace/58968 "2022-11-04T21:03:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![katorce](https://community.mp3tag.de/user_avatar/community.mp3tag.de/katorce/32/12188_2.png) [@katorce](https://community.mp3tag.de/u/katorce)
#### Post date: [November 4, 2022, 9:03pm UTC](https://community.mp3tag.de/t/replace-x-y-z-only-admits-31-items-to-replace/58968/1 "2022-11-04T21:03:48Z")

</div>

The wiki says:  
`replace(x,y,z)` returns the string x with all occurrences of string y replaced by string z. Supports multiple parameter pairs y and z.

But in multiple should say 31 or it should be increased. For example:

```auto
$replace(%_filename%,Ó,O,Ú,U,ü,u,Ü,U,ñ,n,Ñ,N,è,e,ê,e,ì,i,î,i,ï,i,à,a,â,a,ò,o,ô,o,ù,u,û,u,ç,c,Ç,C,ß,ss,œ,oe,Œ,OE,ä,a,Ä,A,ë,e,Ë,E,ü,u,Ü,U,ö,o,Ö,O,Â,A)

```

 ![imagen](https://community.mp3tag.de/uploads/default/original/2X/3/3c5772f3a7d6c099f41bd59ee57c87ddd83c7c30.png)  
Works fine, but if we add any other pair:

```auto
$replace(%_filename%,á,a,é,e,í,i,ó,o,ú,u,Á,A,É,E,Í,I,Ó,O,Ú,U,ü,u,Ü,U,ñ,n,Ñ,N,è,e,ê,e,ì,i,î,i,ï,i,à,a,â,a,ò,o,ô,o,ù,u,û,u,ç,c,Ç,C,ß,ss,œ,oe,Œ,OE,ä,a,Ä,A,ë,e,Ë,E,ü,u,Ü,U,ö,o,Ö,O,Â,A)

```

 ![imagen](https://community.mp3tag.de/uploads/default/original/2X/4/43b765ab9e124e1b3a8a9647671476ab8b5edb09.png)  
It stops workings

Ideally I would like to admit infinite pairs! (With 256/512, we should have enough though), but it not feasible, then please change the wiki to say that it admits a maximum of 31.

Thank you.

---

<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 4, 2022, 9:06pm UTC](https://community.mp3tag.de/t/replace-x-y-z-only-admits-31-items-to-replace/58968/2 "2022-11-04T21:06:33Z")

</div>

Please note the documentation:

> **[Scripting Functions – Mp3tag Documentation](https://docs.mp3tag.de/scripting/#string-functions)**
>
> Documentation on Mp3tag's scripting functions. Mp3tag is the universal Tag Editor.

4th paragraph:

Note that [characters with special functionality](https://docs.mp3tag.de/format/#characters-with-special-functionality) apply. This implies that you can enclose parameters in `'` to pass them as raw text without parsing. Functions with variable parameter count (e.g., `$replace`) are limited to \< 64 parameters.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [November 4, 2022, 11:43pm UTC](https://community.mp3tag.de/t/replace-x-y-z-only-admits-31-items-to-replace/58968/3 "2022-11-04T23:43:47Z")

</div>

> [@katorce](#):
>
> It stops workings

You can use several of such `$replace` instructions grouped together in an action group.  
Maybe thats even better to maintain then 1 replace with 256 pairs of items.

---

<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:29pm UTC](https://community.mp3tag.de/t/replace-x-y-z-only-admits-31-items-to-replace/58968/4 "2026-02-09T12:29:57Z")

</div>


