How to create array (item) from string with breackline

Hello this is my configuration :

i m on premise :

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

i got a string with break line \n and i want create an array from this :

my data source :

core1 \n core2 \n core3 \n core4 \n core5

So how i can create array from this string ?

can i do it with node code transformation or i need to make a node code javascript ?

What do u think please

1 Like

Is this what you want?