I’m looking to manipulate a string of text which contains multiple labels like <ADDRESS> or <PERSON>. I’d normally do this with a regular expression in SQL or Python, but my javascript is weak / non-existent so I’m not quite sure how to approach this in n8n.
Imagine I had a string of text that read:
“Hello my name is <PERSON> and I live at <ADDRESS> with my partner <PERSON>.”
This is just applying the first regex from the function item (replaces all strings that are within angle brackets e.g. <ADDRESS> or double curly braces e.g. {{ADDRESS}}).