<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-K2HM5C" height="0" width="0" style="display:none;visibility:hidden">
  1. Knowledge base
  2. Expression Engine Playbook

How to remove a piece of text

In this article, we will outline how to use the expression engine to remove a piece of text.

Use case:

Let say you have a piece of text in your product title attribute that you wish to remove from all your product titles.

Here is how it works:

 

The command you write is as follows: remove(field1,"text to remove")


You can also remove multiple pieces of text from the same field.

Here is how it works:

 

The command you write is as follows: removeM(field1,"text to remove","text to remove")


This way you can remove as many pieces of text as you need, making sure you only leave relevant information.