I need to "translate" pascal code (not whole code, just lines line a:=5, or Writeln("a=5?"). In pascal = means "is equal", but my program replaces [^=!<>]=[^=!<>]with ==, so in writeln("a=5?") the = will be also replaced with ==. How to avoid replacing text in quotes? I tried with keyword AND: [^\"].*AND.*[^\"] to &&. Is there any way to do this in a single replace per keyword?
I'm writting in Java.
 
     
     
    