# 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:** 5
**Page:** 2

<div class="post-metadata">

### Author: ![Etz](https://community.mp3tag.de/user_avatar/community.mp3tag.de/etz/32/7648_2.png) [@Etz](https://community.mp3tag.de/u/Etz)
#### Post date: [December 3, 2024, 7:28pm UTC](https://community.mp3tag.de/t/a-little-regex-help-with-dots-and-spaces/66709/21 "2024-12-03T19:28:50Z")

</div>

Cannot reproduce it no longer, when I spawned this thread...it was kind of constant... 🤔

---

<div class="post-metadata">

### Author: ![Etz](https://community.mp3tag.de/user_avatar/community.mp3tag.de/etz/32/7648_2.png) [@Etz](https://community.mp3tag.de/u/Etz)
#### Post date: [December 3, 2024, 7:33pm UTC](https://community.mp3tag.de/t/a-little-regex-help-with-dots-and-spaces/66709/22 "2024-12-03T19:33:38Z")

</div>

Actually managed to reproduce it:

 ![image](https://community.mp3tag.de/uploads/default/original/3X/7/8/782db90b040b33ea2da3532ada5f9d84ee4ca3f1.png)

And it happens, when you copy-paste regex (for example from regex101 or VSCode):

 ![image](https://community.mp3tag.de/uploads/default/original/3X/d/7/d72cf4aab69a76aed3750f196499c312292e6930.png)

If you look at that highlighted area, this is what pasting adds, not sure what it is but it does look like huge amount of additional blanks.  
When you type regex in, it won't happen.  
If you delete that highlighted emptyness, everything works too (no wonder, because that regex is not valid)  
It does not show Replacement after -\> because it is pushed out of the window viewport.

Maybe adding trim to field contents would avoid such things?

---

<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, 7:48pm UTC](https://community.mp3tag.de/t/a-little-regex-help-with-dots-and-spaces/66709/23 "2024-12-03T19:48:19Z")

</div>

Glad you found the reason for your observation! Thanks for taking the time to investigate further.

> [@Etz](#):
>
> Maybe adding trim to field contents would avoid such things?

Yes, definitely. Unfortunately, I'm pretty sure that someone eventually doesn't want the field contents to be trimmed, but instead wants to have the additional spaces preserved as part of a regular expression or replacement string.

---

<div class="post-metadata">

### Author: ![Etz](https://community.mp3tag.de/user_avatar/community.mp3tag.de/etz/32/7648_2.png) [@Etz](https://community.mp3tag.de/u/Etz)
#### Post date: [December 3, 2024, 7:59pm UTC](https://community.mp3tag.de/t/a-little-regex-help-with-dots-and-spaces/66709/24 "2024-12-03T19:59:29Z")

</div>

Right...well now at least know, what to look for, if it happens. 🙂

---

<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: [January 2, 2025, 8:00pm UTC](https://community.mp3tag.de/t/a-little-regex-help-with-dots-and-spaces/66709/25 "2025-01-02T20:00:00Z")

</div>

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

[Previous page](https://community.mp3tag.de/t/a-little-regex-help-with-dots-and-spaces/66709.md?page=1)
