JSFiddle - React, Tailwind, and code Playground

by Julian Garcia Castillo

JavaScript

let a = "1 / 2/  3 & 4".split(/(?:\/| |&)+/) 
let b = "1/ 2/  3 & 4".split(/(?:\/| )+/) 

console.log(a)