Help needed.
The given input text is
"['(', /[1-9]/, /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/, /\d/]"
I am trying to convert it into an array
['(', /[1-9]/, /\d/, /\d/, /\d/, ')' ,' ' , /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '-' ,/\d/, /\d/, /\d/, /\d/, /\d/, /\d/]
Unfortunately, I am facing issues as it adds quotes.
I have attempted using the split() method and tried the flat() method as well. Is there any other solution?