# scripting

**URL:** https://community.mp3tag.de/t/scripting/12796
**Category:** Support
**Created:** [December 10, 2011, 11:31am UTC](https://community.mp3tag.de/t/scripting/12796 "2011-12-10T11:31:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![c141heaven](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/aeb1de/32.png) [@c141heaven](https://community.mp3tag.de/u/c141heaven)
#### Post date: [December 10, 2011, 11:31am UTC](https://community.mp3tag.de/t/scripting/12796/1 "2011-12-10T11:31:03Z")

</div>

I've been having trouble figuring out the proper syntax for scripting removal of specific characters from the artist when I rename files based on the tags. I use :

%artist%_%title%_%track%

What I want to do is remove "The" from the artist...e.g.,

The Group\_Song Name\_20

should be

Group\_Song Name\_20

I've fiddled with various scripting functions but just can not seem to get it right. Any help would be appreciated.

Thanks.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [December 10, 2011, 1:07pm UTC](https://community.mp3tag.de/t/scripting/12796/2 "2011-12-10T13:07:04Z")

</div>

$regexp(%artist%,^The +,)

---

<div class="post-metadata">

### Author: ![c141heaven](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/aeb1de/32.png) [@c141heaven](https://community.mp3tag.de/u/c141heaven)
#### Post date: [December 10, 2011, 1:31pm UTC](https://community.mp3tag.de/t/scripting/12796/3 "2011-12-10T13:31:36Z")

</div>

Thanks!!!

---

<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:23pm UTC](https://community.mp3tag.de/t/scripting/12796/4 "2026-02-09T12:23:30Z")

</div>


