Remove dots, hyfens and slashs

Hello, what’s the best way to remove dots, hyfens and slashs from a string?

Should I use .replace and with regex?

I have two cenarios, the first is to remove just dots and hyfens.

The second one is remove dots, hyfens and slashs

  • n8n version: 1.20.0
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: Windows

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @Rodrigo_Pereira1,

A replace seems like a good option for what you are trying to do, The workflow below has an example for this.