# Replace string

**URL:** https://community.mp3tag.de/t/replace-string/17356
**Category:** General Discussion
**Created:** [November 7, 2015, 4:18am UTC](https://community.mp3tag.de/t/replace-string/17356 "2015-11-07T04:18:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![raynor](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/6de8d8/32.png) [@raynor](https://community.mp3tag.de/u/raynor)
#### Post date: [November 7, 2015, 4:18am UTC](https://community.mp3tag.de/t/replace-string/17356/1 "2015-11-07T04:18:27Z")

</div>

Hi,  
Is there substring function in mp3tag?  
How can i replace string "123ABC456" with "ABC".

Thanks for your help and kind regards.

---

<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: [November 7, 2015, 4:59am UTC](https://community.mp3tag.de/t/replace-string/17356/2 "2015-11-07T04:59:22Z")

</div>

> [@raynor](#):
>
> Hi, Is there substring function in mp3tag?  
> How can i replace string "123ABC456" with "ABC". Thanks for your help and kind regards.

Look for scripting functions there ...  
[https://docs.mp3tag.de/scripting](https://docs.mp3tag.de/scripting)

If you want to remove digits from both sides of the given string, ...  
then you may apply the function ...  
$trim('123ABC456','0123456789') ==\> 'ABC'

DD.20151107.0659.CET
