# Removing repeated characters

**URL:** https://community.mp3tag.de/t/removing-repeated-characters/54547
**Category:** Support
**Created:** [September 28, 2021, 8:50am UTC](https://community.mp3tag.de/t/removing-repeated-characters/54547 "2021-09-28T08:50:47Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![asamirid](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/e5b9ba/32.png) [@asamirid](https://community.mp3tag.de/u/asamirid)
#### Post date: [September 28, 2021, 8:50am UTC](https://community.mp3tag.de/t/removing-repeated-characters/54547/1 "2021-09-28T08:50:47Z")

</div>

hello everyone,

can anyone please explain how to do this **" reg ex \_ALL, \s\s "** ,i found this regex string here in the forum to remove the double spaces but it's not clear how to use it inside the app and app help file doesn't really help me.

explanation by steps please, it's my first days with the app and iam not yet familiar with all it's functions.

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: [September 28, 2021, 8:55am UTC](https://community.mp3tag.de/t/removing-repeated-characters/54547/2 "2021-09-28T08:55:17Z")

</div>

The easiest way would be to use a "replace" action.

If you need something else, have a look at the FAQs  
There you find hints on how to use an action and a specific approach to remove space characters (trailing, leading, repeated):

> [@Actions and batch-operations](https://community.mp3tag.de/t/actions-and-batch-operations/967/10):
>
> How to remove/trim leading and trailing spaces [Video tutorial for these actions](http://www.vimeo.com/7756545) Leading spaces: Action type: Replace with regular expressions Field: \_TAG Regular expression: ^\s+ Replace matches with: ^ matches the beginning of the string. Then \s+ searches for all whitespaces till a different char occurs. The whitespaces found will be replaced by nothing and, thus, deleted. Trailing spaces: Action type: Replace with regular expressions Field: \_TAG Regular expression: \s+$ Replace matc…

---

<div class="post-metadata">

### Author: ![asamirid](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/e5b9ba/32.png) [@asamirid](https://community.mp3tag.de/u/asamirid)
#### Post date: [September 28, 2021, 9:47am UTC](https://community.mp3tag.de/t/removing-repeated-characters/54547/3 "2021-09-28T09:47:35Z")

</div>

> [@Actions and batch-operations](https://community.mp3tag.de/t/actions-and-batch-operations/967/10):
>
> Field: **\_TAG**

please can you explain what Field "\_TAG" is ?? i think it's all tags Fields, but iam not sure and it's not clear !! some advice here

also the page linked "Actions and batch-operations" are very good and useful reference, 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: [September 28, 2021, 9:56am UTC](https://community.mp3tag.de/t/removing-repeated-characters/54547/4 "2021-09-28T09:56:42Z")

</div>

> [@asamirid](#):
>
> can you explain what Field "\_TAG" is

This field variable describes the whole tag data. It spares you the effort to name every field explicitly. Yet, a word of warning, it may lead to undesirable results if you let loose a action on the whole tag data and you do not know exactly which data is in the tag.

A better approach would be to treat only the fields where you really suspect multiple successive space characters.

---

<div class="post-metadata">

### Author: ![asamirid](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/e5b9ba/32.png) [@asamirid](https://community.mp3tag.de/u/asamirid)
#### Post date: [September 28, 2021, 10:00am UTC](https://community.mp3tag.de/t/removing-repeated-characters/54547/5 "2021-09-28T10:00:16Z")

</div>

thank you, i will backup all my music library first, and will go carefully with the "\_TAG" field

---

<div class="post-metadata">

### Author: ![asamirid](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/e5b9ba/32.png) [@asamirid](https://community.mp3tag.de/u/asamirid)
#### Post date: [September 28, 2021, 10:11am UTC](https://community.mp3tag.de/t/removing-repeated-characters/54547/6 "2021-09-28T10:11:24Z")

</div>

sorry one last question, it looks dump but i need to be sure 😁😁

is any modifying to the "\_TAG" field contain or affect the targeted file name itself !!

i know i shouldn't ask that but it's very critical point ‼

---

<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: [September 28, 2021, 10:22am UTC](https://community.mp3tag.de/t/removing-repeated-characters/54547/7 "2021-09-28T10:22:53Z")

</div>

> [@asamirid](#):
>
> contain or affect the targeted file name itself

I think that the filename is included in the treatment if you use `_ALL`

---

<div class="post-metadata">

### Author: ![asamirid](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/e5b9ba/32.png) [@asamirid](https://community.mp3tag.de/u/asamirid)
#### Post date: [September 28, 2021, 10:34am UTC](https://community.mp3tag.de/t/removing-repeated-characters/54547/8 "2021-09-28T10:34:26Z")

</div>

you are right, "\_TAG" field is for tags only ✅✅

---

<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: [September 28, 2021, 10:53am UTC](https://community.mp3tag.de/t/removing-repeated-characters/54547/9 "2021-09-28T10:53:50Z")

</div>

> [@ohrenkino](#):
>
> Yet, a word of warning, it may lead to undesirable results if you let loose a action on the whole tag data and you do not know exactly which data is in the tag.

+1

@asamirid Please be aware that \_TAG also includes the Lyrics tag `UNSYNCEDLYRICS`. Every change you make will be executed for your embedded lyrics too. So again: Be very careful using \_TAG.

---

<div class="post-metadata">

### Author: ![asamirid](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/e5b9ba/32.png) [@asamirid](https://community.mp3tag.de/u/asamirid)
#### Post date: [September 28, 2021, 11:24am UTC](https://community.mp3tag.de/t/removing-repeated-characters/54547/10 "2021-09-28T11:24:23Z")

</div>

yep, good thinking, lyrics will be affected too 😳😳

---

<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/removing-repeated-characters/54547/11 "2026-02-09T12:29:26Z")

</div>


