# Verarbeitung des Datei-Pfades?

**URL:** https://community.mp3tag.de/t/verarbeitung-des-datei-pfades/2046
**Category:** Allgemein
**Created:** [June 11, 2005, 11:49pm UTC](https://community.mp3tag.de/t/verarbeitung-des-datei-pfades/2046 "2005-06-11T23:49:21Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![aladoro](https://community.mp3tag.de/user_avatar/community.mp3tag.de/aladoro/32/64_2.png) [@aladoro](https://community.mp3tag.de/u/aladoro)
#### Post date: [June 20, 2005, 8:51am UTC](https://community.mp3tag.de/t/verarbeitung-des-datei-pfades/2046/8 "2005-06-20T08:51:44Z")

</div>

> Führende Leerzeichen entfernen  
> Nun werden auch die hinteren Leerstellen entfernt!  
> und doppelte irgendwo zwischendrin?

Thema schon oft diskutiert ...

Was mir an der "\s\*"-Lösung nie gefiel, ist das Ersetzen von _null_ bis n Blanks durch nichts. Nix durch nix ersetzen macht keinen Sinn. "\s+" hingegen matcht 1 bis n Blanks und "\s{2,}" 2 oder mehrere.

Das Ganze schön in 1 Aktion verpackt erledigt das Blank-Problem ein für alle Mal sauber.

Beiliegende MTA-Datei [TrimBlanks.mta](https://community.mp3tag.de/uploads/default/original/2X/4/46d6021d46057db2d1291f5670b797659b348850.mta) (120 Bytes) einfach nach C:\Dokumente und Einstellungen[Benutzer]\Application Data\MP3Tag\data\actions kopieren + unter Konvertieren-Aktion aktivieren ...

HTH, andreas

[TrimBlanks.mta](https://community.mp3tag.de/uploads/default/original/2X/4/46d6021d46057db2d1291f5670b797659b348850.mta) (120 Bytes)

---

_[View the full topic](https://community.mp3tag.de/t/verarbeitung-des-datei-pfades/2046)._
