How to remove all [ACTION:...] tags using regular expressions

I have a text variable that may contain several action codes, for example:[ACTION:SCHEDULE_APPOINTMENT]
[ACTION:AGENT_ASSIST]
[ACTION:...]

How can I create a regular expression with the replace function to remove all of these occurrences at once?

Thanks in advance for your help!

Hey there,

replace() function is what you are looking for. Use it to replace ACTION: with {{emptystring}} and it will delete all occurrences.

Thanks for your reply!

Just to clarify — my issue is that the text variable can include an action code together with other text. For example:
I don’t have your answer [ACTION:AGENT_ASSIST]

If I use replace() to remove only "ACTION:", I end up with:
I don’t have your answer [AGENT_ASSIST]

But what I actually need is to remove the entire action code block — so the result should be:
I don’t have your answer

So I’m looking for a regular expression that can remove everything that matches this pattern: [ACTION:SOMETHING], regardless of what comes after “ACTION:”.