# Remove Trailing Special Characters

**URL:** https://community.mp3tag.de/t/remove-trailing-special-characters/15584
**Category:** Support
**Created:** [March 14, 2014, 1:44am UTC](https://community.mp3tag.de/t/remove-trailing-special-characters/15584 "2014-03-14T01:44:20Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [March 14, 2014, 6:18am UTC](https://community.mp3tag.de/t/remove-trailing-special-characters/15584/3 "2014-03-14T06:18:04Z")

</div>

> [@nhtrader](#):
>
> I frequently see trailing "boxes" which indicate non-word characters (not alpha-numeric) and I would like to remove them. ...

Text with "boxes" in singe-line tag fields is not automatic, this can be introduced for example by copy & paste.

In most cases, these are the non-displayable control characters CR for "carriage return" or LF for "line feed", as used in multi-line texts as end of line, sometimes it is the control character for TAB "tabulator".

How 'ohrenkino' in post #2 already said, the box characters can also be readable foreign text, or graphical symbols, but can not be represented correctly by the current screen font, so that just such a box character appears as a replacement.

In case of CR or LF you can use the Mp3tag trimming functions, e. g. ...

**$trimRight(%COMPOSER%,$char(13)$char(10))**

... or a regexp function, which removes all non-word characters at end of the string ...

**$regexp(%COMPOSER%,'\W\*\Z',)**

See also ...  
[probleme mit ä ü ö](https://community.mp3tag.de/t/10613/19)

DD.20140314.0849.CET  
DD.20140320.2012.CET

---

_[View the full topic](https://community.mp3tag.de/t/remove-trailing-special-characters/15584)._
