Detect AND, OR in the sentence and split it : <p>I have the following user queries:</p>

<pre><code>Boeing AND Airbus OR twitter
Boeing AND Airbus
</code></pre>

<p>I need to split words in them by AND, OR so, in the end, I will have something like this:</p>

<pre><code>"Boeing" AND "Airbus"
"Boeing" AND "Airbus" OR "twitter"
</code></pre>

<p>How can I do this with split or any other method? </p>
