# Replace Scripting Function Not working in the presence of Mathematical Characters

**URL:** https://community.mp3tag.de/t/replace-scripting-function-not-working-in-the-presence-of-mathematical-characters/66592
**Category:** Support
**Created:** [November 22, 2024, 4:24am UTC](https://community.mp3tag.de/t/replace-scripting-function-not-working-in-the-presence-of-mathematical-characters/66592 "2024-11-22T04:24:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mista\_j](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mista_j/32/15808_2.png) [@mista\_j](https://community.mp3tag.de/u/mista_j)
#### Post date: [November 22, 2024, 4:24am UTC](https://community.mp3tag.de/t/replace-scripting-function-not-working-in-the-presence-of-mathematical-characters/66592/1 "2024-11-22T04:24:16Z")

</div>

Here is my data:  
 ![image_2024-11-21_201744742](https://community.mp3tag.de/uploads/default/original/3X/0/9/09d60c59d7e004e5d078e65c1f3983ab6ba499f2.png)

What I'd like to do is a replace from the Genre Field. I want to remove the Values of Sub Genre 1-3 from the genre field

Using:  
$Replace(%Genre%,//%SUB GENRE 3%,)

I can successfully remove the value in sub genre 3 from the genre However the same cannot be said if I try that same scripting with Sub Genres 1 or 2. The Genre Field remains unchanged

The Mathematical Characters in the Genre & Sub Genre 2 Fields are "𝐏𝐌𝐎"

If anyone can recreate this scenario with some dummy fields please let me know if you can get it working. In cases like these I'm usually making a simple mistake. If not then mp3tag has some qualms with [mathematical characters](https://www.compart.com/en/unicode/block/U+1D400)

---

<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 22, 2024, 7:10am UTC](https://community.mp3tag.de/t/replace-scripting-function-not-working-in-the-presence-of-mathematical-characters/66592/2 "2024-11-22T07:10:41Z")

</div>

I tried this successfully:  
 ![grafik](https://community.mp3tag.de/uploads/default/original/3X/b/f/bff098060dc975eead41797249820e49a20f4a8b.png)  
see the preview.

Or this:  
 ![grafik](https://community.mp3tag.de/uploads/default/original/3X/e/f/ef780363c47f8e80c8b97c11bd6d5bf9f406e93b.png)

and just to get the terms right:  
You do not use an action to replace as the title of this thread indicates but you use a scripting function which may occur in generating format strings.  
You would have to check now whether you use the correct syntax.  
The easiest way would be to test the expression with the preview in Convert\>Tag-Tag.

---

<div class="post-metadata">

### Author: ![mista\_j](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mista_j/32/15808_2.png) [@mista\_j](https://community.mp3tag.de/u/mista_j)
#### Post date: [November 22, 2024, 7:00pm UTC](https://community.mp3tag.de/t/replace-scripting-function-not-working-in-the-presence-of-mathematical-characters/66592/3 "2024-11-22T19:00:54Z")

</div>

As per the documentation for scripting functions I am using:  
$replace(x,y,z)  
to perform this task.

I was able to get it working this morning so i must assume I had a syntax error. Either that or ripping a CD at the same time as tagging files is problematic for my PC. I believe the former is more likely.

Thanks Again

---

<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 22, 2024, 7:01pm UTC](https://community.mp3tag.de/t/replace-scripting-function-not-working-in-the-presence-of-mathematical-characters/66592/4 "2024-12-22T19:01:00Z")

</div>

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