# Can scripting be used in 'Action-Replace with regular exp'

**URL:** <https://community.mp3tag.de/t/can-scripting-be-used-in-action-replace-with-regular-exp/19512>\
**Category:** Support\
**Created:** [November 6, 2017, 5:34pm UTC](https://community.mp3tag.de/t/can-scripting-be-used-in-action-replace-with-regular-exp/19512 "2017-11-06T17:34:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arthurb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/9f8e36/32.png) [@arthurb](https://community.mp3tag.de/u/arthurb)\
**Post date:** [November 6, 2017, 5:34pm UTC](https://community.mp3tag.de/t/can-scripting-be-used-in-action-replace-with-regular-exp/19512/1 "2017-11-06T17:34:26Z")

</div>

I have been using regular expressions and scripting recently, and discovering the power of MP3TAG, but have a problem. A script (or set of scripting functions) which works as intended in the action 'Format Value' to extract some text to another field, does not work when used unchanged in 'Replace with Regular Expression' to delete the text from the original field. The documentation for Scripting Functions says that they can be used in both these Actions, is that true? When I use the Script in 'Replace with RegExp', nothing happens, and although I get a message saying that 1 tag has been updated, it has not.

Can anyone confirm that Scripting can be used in both of these Actions (Format Value and Replace with RegExp)?

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [November 6, 2017, 7:41pm UTC](https://community.mp3tag.de/t/can-scripting-be-used-in-action-replace-with-regular-exp/19512/2 "2017-11-06T19:41:46Z")

</div>

> [@arthurb](#):
>
> ...  
> Can anyone confirm that Scripting can be used in both of these Actions (Format Value and Replace with RegExp)?

I can't because it cannot.  
And if you look closely, you will find the input fields  
Field  
Regular expression and  
Replace with  
in the action of the type "Replace with regular expression"

and the input fields  
Field and  
Format String  
in the action of the type "Format value".  
So these are completely different approaches.

---

<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:27pm UTC](https://community.mp3tag.de/t/can-scripting-be-used-in-action-replace-with-regular-exp/19512/3 "2026-02-09T12:27:05Z")

</div>


