Im trying to split strings like the following :
"a||b && c || true||false"
into the following array: {a,||,b,&&,c,||,true,||,false}
Which means that that I want to sepharate each component with the || &&
delimiters ( they can appear anywhere in the string)
*Note that anything can appear between the || &&
delimiters. it doesn't really matter to me.
note that white spaces can appear in the string but should be ignored when the string is split into an array.
I didn't manage to find a regex / way to do it, would glad to get help in this subject, thanks!