# Feature Request: $trim()

**URL:** https://community.mp3tag.de/t/feature-request-trim/1009
**Category:** General Discussion
**Created:** [May 4, 2004, 1:08am UTC](https://community.mp3tag.de/t/feature-request-trim/1009 "2004-05-04T01:08:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![beaker](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/ecb155/32.png) [@beaker](https://community.mp3tag.de/u/beaker)
#### Post date: [May 4, 2004, 1:08am UTC](https://community.mp3tag.de/t/feature-request-trim/1009/1 "2004-05-04T01:08:35Z")

</div>

I'd love to be able to utilize the trim function to remove leading and trailing spaces from individual items similar to the other functions you've enabled.

---

<div class="post-metadata">

### Author: ![Sebastian\_Mares](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sebastian_mares/32/9285_2.png) [@Sebastian\_Mares](https://community.mp3tag.de/u/Sebastian_Mares)
#### Post date: [May 4, 2004, 3:43pm UTC](https://community.mp3tag.de/t/feature-request-trim/1009/2 "2004-05-04T15:43:08Z")

</div>

You could emulate the $trim() function by using regular expressions. 😉

---

<div class="post-metadata">

### Author: ![beaker](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/ecb155/32.png) [@beaker](https://community.mp3tag.de/u/beaker)
#### Post date: [May 4, 2004, 4:49pm UTC](https://community.mp3tag.de/t/feature-request-trim/1009/3 "2004-05-04T16:49:28Z")

</div>

Thank you Sebastian. I had honestly forgotten about regular expressions since I never use them. I see Florian's example on removing leading spaces, any thoughts on how to remove trailing ones? I don't "get" regular expressions.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [May 4, 2004, 5:30pm UTC](https://community.mp3tag.de/t/feature-request-trim/1009/4 "2004-05-04T17:30:39Z")

</div>

Here you go 🙂

Best regards,  
~ Florian

---

<div class="post-metadata">

### Author: ![beaker](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/ecb155/32.png) [@beaker](https://community.mp3tag.de/u/beaker)
#### Post date: [May 4, 2004, 8:16pm UTC](https://community.mp3tag.de/t/feature-request-trim/1009/5 "2004-05-04T20:16:29Z")

</div>

Thank you, both. 🙂
