title: VBscript: how to Uppercase specific parts of text in a string, outside of quotes ('s)
body: <p>i need your help.
  in vbscript i have a string such as</p>
  
  <p>s = 'Abc' and 'Def' Or 'Ghin' In 'jkl' not 'mnoR' And ... or ... NOT ... iN ...</p>
  
  <p>and i want to uppercase these specific 4 operators (in any combination of lower and upper text): and, or, in, not, to Uppercase.</p>
  
  <p>These operators exist outside the quotes (') - because between them i have business rules. This is important, because, as you can see in 3rd rule ('Ghin') i have 'in' in the name of the rule and in these cases i do not want the text between the quotes (business rule name) to be altered.</p>
  
  <p>How can i solve this in vbscript, preferently using RegEx?</p>
  
  <p>TIA</p>
  
  <p>EDIT: 
  Thanks for your help.</p>
  
  <p>Sorry, but i forgot to mention one detail: i can have text outside the quotes, namely "(" , ")", "[","]" or conditions as "1 = 1", but again: the operators to be changed exist outside the quotes and inside quotes nothing is done.</p>
  
  <p>Using the previous example:
  s = "('abc' and ['Def' Or 'Ghin'] In 'jkl' not 1=1 AND 'mnoR' And 'pqr' or 'xyz' NOT 'lmn' iN 'Opq')"</p>
  
  <p>s = "('abc' AND ['Def' OR 'Ghin'] IN 'jkl' NOT 1=1 AND 'mnoR' AND 'pqr' OR 'xyz' NOT 'lmn' IN 'Opq')"</p>