# Putting a space between something specific

**URL:** <https://community.mp3tag.de/t/putting-a-space-between-something-specific/16969>\
**Category:** Support\
**Created:** [June 16, 2015, 10:41am UTC](https://community.mp3tag.de/t/putting-a-space-between-something-specific/16969 "2015-06-16T10:41:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)\
**Post date:** [June 16, 2015, 10:41am UTC](https://community.mp3tag.de/t/putting-a-space-between-something-specific/16969/1 "2015-06-16T10:41:55Z")

</div>

I would like to know how to automatically put space between signs

The marker would be \>\> ## \<\< and the spaces would need to be put before it; but not always [and that's the problem]

Examples:

```
BEFORE
##01##02 ##03 ##04
AFTER
##01 ##02 ##03 ##04

BEFORE
##01##CITY ##03 ##04
AFTER
##01 ##CITY ##03 ##04

BEFORE
##01##02 ##village ##04
AFTER
##01 ##02 ##village ##04

```

So the rule is: put a single space there, where there is any kind of sign followed by two hastags; and thus not putting more spaces where they already are

In other words: two hastags adjacent to something are correct; but two hastags in the middle of smething are wrog and need to be separated from whatever signs there might be before [and not after] them

Can it be done?

---

<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:** [June 16, 2015, 3:59pm UTC](https://community.mp3tag.de/t/putting-a-space-between-something-specific/16969/2 "2015-06-16T15:59:53Z")

</div>

> [@zerow](#):
>
> I would like to know how to automatically put space between signs
> 
> The marker would be \>\> ## \<\< and the spaces would need to be put before it; but not always [and that's the problem]
> 
> ...

I would use a more or less brute force approach:  
Simple replace: all ## with space-space-##  
Simple replace: all 4-spaces with 2 spaces  
Simple replace: all 3-spaces with 2 spaces.  
Format value field: $trim(%field%)  
(to get rid of leading spaces at the front)

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [June 16, 2015, 5:34pm UTC](https://community.mp3tag.de/t/putting-a-space-between-something-specific/16969/3 "2015-06-16T17:34:36Z")

</div>

> [@zerow](#):
>
> I would like to know how to automatically put space between signs ... Can it be done?

You may do it this way, like 'ohrenkino' in post #2 already pointed out, ...

**Before: TEST = '##01##02 ##village ##04' Convert "Tag-Tag" ... or ... Action "Format value" Field: TEST Formatstring: $trim($replace(%TEST%,'##',' ##',' ##',' ##')) Result: TEST = '##01 ##02 ##village ##04'**

DD.20150616.2134.CEST

---

<div class="post-metadata">

**Author:** ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)\
**Post date:** [June 17, 2015, 11:46am UTC](https://community.mp3tag.de/t/putting-a-space-between-something-specific/16969/4 "2015-06-17T11:46:47Z")

</div>

Thank you both very much

[The first suggested way I should have figured out on my own, shame on me]

I use now this code

```
$replace(%GENRE%,'#','##','###','##')
$trim($replace(%GENRE%,'##',' ##',' ##',' ##'))

```

And after it I run some more to get rid of unwanted spaces, than might were there before

In this way I get

```
##00 ##00 ##00 ##abc ##abc ##abc

```

which is the format / visual, that I need

---

<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:25pm UTC](https://community.mp3tag.de/t/putting-a-space-between-something-specific/16969/5 "2026-02-09T12:25:43Z")

</div>

Closed on February 9, 2026, 12:25pm UTC


