I am trying to split a string based on 2 delimiters
let text = "How are you doing AND today OR yesterday?";
const myArray = text.split('AND|OR');
console.log(myArray)
But the above does not work
How can I do that?
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
I am trying to split a string based on 2 delimiters
let text = "How are you doing AND today OR yesterday?";
const myArray = text.split('AND|OR');
console.log(myArray)
But the above does not work
How can I do that?