# Regular expression repeating  character

**URL:** <https://community.mp3tag.de/t/regular-expression-repeating-character/15912>\
**Category:** Support\
**Created:** [July 16, 2014, 9:36am UTC](https://community.mp3tag.de/t/regular-expression-repeating-character/15912 "2014-07-16T09:36:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ForSSound](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/258eb7/32.png) [@ForSSound](https://community.mp3tag.de/u/ForSSound)\
**Post date:** [July 16, 2014, 9:36am UTC](https://community.mp3tag.de/t/regular-expression-repeating-character/15912/1 "2014-07-16T09:36:34Z")

</div>

Hi There,

Lets assume that I have a comment field with content on multiple lines.  
And I would like to remove the multiple ----

Rather then counting the number of -- I would like to remove ALL ---- if there's more then one

Furthermore I would like to be able to adapt the - sign to another character.

already thank you for reading this.  
Guy

```
Ambiance description : roots, malta, portuguese, boats -------------------------------------------

All rights reserved
PRODUCER-PUBLISHER
PARSIPARLA
3 rue des Aulnes
03000 AVERMES
FRANCE
tel fax (33) (0) 4 70 20 65 10
info@parsiparla.com
www.parsiparla.com
```

---

<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:** [July 16, 2014, 9:45am UTC](https://community.mp3tag.de/t/regular-expression-repeating-character/15912/2 "2014-07-16T09:45:51Z")

</div>

QUOTE (ForSSOund @ Jul 16 2014, 13:36) \<{POST\_SNAPBACK}\>

Hi There,

Lets assume that I have a comment field with content on multiple lines.  
And I would like to remove the multiple ----

Rather then counting the number of -- I would like to remove ALL ---- if there's more then one

Furthermore I would like to be able to adapt the - sign to another character.

already thank you for reading this.  
Guy

```
Ambiance description : roots, malta, portuguese, boats -------------------------------------------

All rights reserved
PRODUCER-PUBLISHER
PARSIPARLA
3 rue des Aulnes
03000 AVERMES
FRANCE
tel fax (33) (0) 4 70 20 65 10
info@parsiparla.com
www.parsiparla.com<!--QuoteEnd--></div><!--QuoteEEnd-->

```

Yopu could appy Convert\>Tag-Tag  
for comment  
with  
$regexp(%comment%,-+,-)  
This replaces all multi-minusses with one - or whatever you choose as replacement.

---

<div class="post-metadata">

**Author:** ![ForSSound](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/258eb7/32.png) [@ForSSound](https://community.mp3tag.de/u/ForSSound)\
**Post date:** [July 16, 2014, 10:26am UTC](https://community.mp3tag.de/t/regular-expression-repeating-character/15912/3 "2014-07-16T10:26:26Z")

</div>

> [@ohrenkino](#):
>
> Yopu could appy Convert\>Tag-Tag  
> for comment  
> with  
> $regexp(%comment%,-+,-)  
> This replaces all multi-minusses with one - or whatever you choose as replacement.

Tnaks for the Ultra quick answer

However I was not correct in my question.  
In fact everything after and including the repeating -- must go and I found that this for mood and genre does work.

```
(--).*

```

But man you're fast  
Kind Regards

---

<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:** [July 16, 2014, 10:30am UTC](https://community.mp3tag.de/t/regular-expression-repeating-character/15912/4 "2014-07-16T10:30:32Z")

</div>

> [@ForSSOund](#):
>
> Tnaks for the Ultra quick answer
> 
> However I was not correct in my question.  
> In fact everything after and including the repeating -- must go and I found that this for mood and genre does work.
> 
> ```
> (--).*
> 
> ```
> 
> But man you're fast  
> Kind Regards

If you want to delete everything after the --  
try:  
Search string: --.\*$  
Leave replace string empty.  
Works as "Replace with regular expression" or as $regexp() in format value actions or in Tag-Tag-conversion.

---

<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/regular-expression-repeating-character/15912/5 "2026-02-09T12:25:08Z")

</div>

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


