title: Regular expressions: ignore what is quoted in a string
body: <p>If I have the string <code>"This is &gt; than" something 1=3 and "else = true"</code> (dont try to understand what it means, its just an example:P ) how can i replace a custom pattern that is not contained by quotes? For example replace the '='(equals) operator, the first one, with lets say '&lt;' resulting in the string  <code>"This is &gt; than" something 1&lt;3 and "else = true"</code>. Thank you in advance.</p>