title: How do I formulate ExcludePath regex for Python DeepDiff in this JSON?
body: <p>I want to exclude Key7 and Key8 from the <a href="https://github.com/seperman/deepdiff" rel="nofollow noreferrer">DeepDiff</a> comparison. Even if the values of key7 and key 8 are different, I don't want DeepDiff to consider it.</p>
  <pre><code>diff = DeepDiff(object1, object2, excludePath)
  </code></pre>
  <p>The sample object looks like below:</p>
  <p>Obj1:</p>
  <pre><code>{
      &quot;KEY1&quot;: &quot;VALUE1&quot;,
      &quot;KEY2&quot;: &quot;VALUE2&quot;,
      &quot;KEY3&quot;: &quot;VALUE3&quot;,
      &quot;KEY4&quot;: 4,
      &quot;KEY5&quot;: [
          {
              &quot;KEY6&quot;: &quot;VALUE&quot;,
              &quot;KEY7&quot;: 6,
              &quot;KEY8&quot;: VALUE
          }
      ]
  }
  </code></pre>