Text parser - Replace, adding "null" instead of deleting matched text

Hello! I am using the Text parser - Replace transformer to strip a paragraph of HTML. It works well, but instead of simply deleting the HTML, it adds “null” to the text instead.

See example:

Is there a way to get it to delete the matched text instead of adding null? I’ve tried adding a space, but then it adds a space instead, which is not ideal.

I kinda answered my own question not long after posting this.

I used the stripHTML feature instead, which does what I want without needing to parse the text/use regex.

Screenshot 2023-02-18 at 12.12.15 pm

I would still like to know for future reference how to use regex to find and delete text without it adding in “null” however.

1 Like

Hi. Remove any null in the text using replace

{{replace(stripHTML(33.text); “null”; emptystring)}}

image

Thanks, Helio!
Wemakefuture
If you have questions reach out :wink:

1 Like