title: regex for even no. of single quotes
body: <p>I am trying to find 'AND' followed by even no. of single(') quotes and replace it with 'OR', I am trying it in java using regex but no luck so far</p>
  
  <pre><code>e.g.  company='sam"'"s AND joseph"'"s' AND year='1998'
        EXPECTED output: company=' sam"'"s AND joseph"'"s ' OR year='1998'
  </code></pre>
  
  <p>single quotes within double quotes are not to be considered while counting for even no. of single quotes.So in the above output first 'and' remains intact and second one gets replaced by 'or'</p>