I have a form that is returning a string of visitors names. Returned string looks like this:
[{"First Name":"JAMES","Last Name":"SMITH"},{"First Name":"SARAH","Last Name":"SMITH"}]
I'm using JavaScript in Zapier to remove the special characters from the string:
let INPUT = inputData.INPUT;
let OUTPUT = INPUT.replace(/[^a-z0-9]/gi, '');
output = [{INPUT, OUTPUT}];
but that gives me this output: FirstNameJAMESLastNameSMITHFirstNameSARAHLastNameSMITH
My ultimate goal is to produce something like this: JAMES SMITH SARAH SMITH etc
Is it possible to remove the special characters EXCEPT for the string },{
? I could then use zapier to split the records using },{
as the identifier.
Thanks!