title: RegEx to split string based on operators and retain operator in answer
body: <p>I want to split string based on few operands. </p>
  
  <p>For e.g.
  String : <strong>a&amp;&amp;(b||c)</strong><br/></p>
  
  <p>ANS : String[] <strong>{a,&amp;&amp;,(,||,c,)}</strong></p>
  
  <p>IS it possible with java RegEx? If yes then how?</p>
  
  <p>I tried with <strong>[&amp;&amp;||()]</strong> regEx , but its not giving desired output. and even I am not sure how to retain operators.</p>
  
  <p><strong>EDIT:</strong>
  And what if we have &amp; and | instead of &amp;&amp; and || ?</p>