# A little regex help with dots and spaces

**URL:** https://community.mp3tag.de/t/a-little-regex-help-with-dots-and-spaces/66709
**Category:** Mac
**Created:** [December 3, 2024, 9:51am UTC](https://community.mp3tag.de/t/a-little-regex-help-with-dots-and-spaces/66709 "2024-12-03T09:51:20Z")
**Posts on this page:** 1
**Showing post:** 16

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [December 3, 2024, 1:25pm UTC](https://community.mp3tag.de/t/a-little-regex-help-with-dots-and-spaces/66709/16 "2024-12-03T13:25:53Z")

</div>

> [@ohrenkino](#):
>
> I just tested in Convert\>Tag-Tag and it does not return a hit but the original string.

This is because, when using a scripting function in the replacement part of the `$regexp` function, the scripting function is evaluated _before_ the replacement occurs. This is due to the evaluation order of the scripting language.

The action Replace with Regular Expression supports scripting functions in the replacement part.

> [@ohrenkino](#):
>
> So what about the suggestion

This won't work on macOS, because the underlying [ICU regular expression engine](https://unicode-org.github.io/icu/userguide/strings/regexp.html) does not support `\u`.

In my experiments, the Java 8 flavour on regex101 is the closest match to simulate the behaviour of ICU.

---

_[View the full topic](https://community.mp3tag.de/t/a-little-regex-help-with-dots-and-spaces/66709)._
