title: JMeter Response Assertion fails pattern
body: <p><strong>Apply to:</strong> Main sample and sub-samples
  <strong>Response Field to Test:</strong> Text Response
  <strong>Pattern Matching Rules:</strong> Contains</p>
  
  <p><strong>Patterns to test:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-5" standalone="yes"?&gt;
  &lt;CIT_REQUEST&gt;
      &lt;SYSTEM&gt;
          &lt;CIT_Version Value="1.0"/&gt;
          &lt;ERR Value=""/&gt;
          &lt;FORMAT Value="XML"/&gt;
          &lt;INTERFACE_RET Value=""/&gt;
          &lt;MAIN_ID Value="37407427745"/&gt;
          &lt;MSG_ID Value=".*"/&gt; - regexp not working
          &lt;SYNC Value="N"/&gt;
          &lt;Version Value="002"/&gt;
      &lt;/SYSTEM&gt;
      &lt;DATA&gt;
          &lt;PACKAGE_B64&gt;
      PE1zZ0NsaWVudEFkZFJzIHhtbG5zPSJ1cm46c2NoZW1hcy1wc2l0LXJ1OmdwIj48
  UnFVSUQ+Mzc0MDc0Mjc3NDU8L1JxVUlEPjxScVJlc3VsdD48U3RhdHVzPk9rPC9T
  dGF0dXM+PENvbW1lbnQ+TmV3PC9Db21tZW50PgoJCQk8L1JxUmVzdWx0PjxSZXN1
  bHQ+PENsaWVudElkPjc3MzY0NTgyPC9DbGllbnRJZD48SW50ZXJuYWxfQ2xpZW50
  SWQ+MjY3PC9JbnRlcm5hbF9DbGllbnRJZD4KCQkJPC9SZXN1bHQ+CgkJPC9Nc2dD
  bGllbnRBZGRScz4=
  
  &lt;/PACKAGE_B64&gt;
      &lt;/DATA&gt;
  &lt;/CIT_REQUEST&gt;
  </code></pre>
  
  <p><strong>Response:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-5" standalone="yes"?&gt;
  &lt;CIT_REQUEST&gt;
      &lt;SYSTEM&gt;
          &lt;CIT_Version Value="1.0"/&gt;
          &lt;ERR Value=""/&gt;
          &lt;FORMAT Value="XML"/&gt;
          &lt;INTERFACE_RET Value=""/&gt;
          &lt;MAIN_ID Value="37407427745"/&gt;
          &lt;MSG_ID Value="F3C826680F5E45C3AA97DEE4DA51F54B"/&gt; - MSG_ID Value changes for each request
          &lt;SYNC Value="N"/&gt;
          &lt;Version Value="002"/&gt;
      &lt;/SYSTEM&gt;
      &lt;DATA&gt;
          &lt;PACKAGE_B64&gt;
      PE1zZ0NsaWVudEFkZFJzIHhtbG5zPSJ1cm46c2NoZW1hcy1wc2l0LXJ1OmdwIj48
  UnFVSUQ+Mzc0MDc0Mjc3NDU8L1JxVUlEPjxScVJlc3VsdD48U3RhdHVzPk9rPC9T
  dGF0dXM+PENvbW1lbnQ+TmV3PC9Db21tZW50PgoJCQk8L1JxUmVzdWx0PjxSZXN1
  bHQ+PENsaWVudElkPjc3MzY0NTgyPC9DbGllbnRJZD48SW50ZXJuYWxfQ2xpZW50
  SWQ+MjY3PC9JbnRlcm5hbF9DbGllbnRJZD4KCQkJPC9SZXN1bHQ+CgkJPC9Nc2dD
  bGllbnRBZGRScz4=
  
  &lt;/PACKAGE_B64&gt;
      &lt;/DATA&gt;
  &lt;/CIT_REQUEST&gt;
  </code></pre>
  
  <p><strong>Assertion failure message:</strong></p>
  
  <pre><code>Assertion error: false
  Assertion failure: true
  Assertion failure message: Test failed: text expected to contain /&lt;?xml version="1.0" encoding="ISO-8859-5" standalone="yes"?&gt;
  &lt;CIT_REQUEST&gt;
      &lt;SYSTEM&gt;
          &lt;CIT_Version Value="1.0"/&gt;
          &lt;ERR Value=""/&gt;
          &lt;FORMAT Value="XML"/&gt;
          &lt;INTERFACE_RET Value=""/&gt;
          &lt;MAIN_ID Value="37407427745"/&gt;
          &lt;MSG_ID Value=".*"/&gt;
          &lt;SYNC Value="N"/&gt;
          &lt;Version Value="002"/&gt;
      &lt;/SYSTEM&gt;
      &lt;DATA&gt;
          &lt;PACKAGE_B64&gt;
      PE1zZ0NsaWVudEFkZFJzIHhtbG5zPSJ1cm46c2NoZW1hcy1wc2l0LXJ1OmdwIj48
  UnFVSUQ+Mzc0MDc0Mjc3NDU8L1JxVUlEPjxScVJlc3VsdD48U3RhdHVzPk9rPC9T
  dGF0dXM+PENvbW1lbnQ+TmV3PC9Db21tZW50PgoJCQk8L1JxUmVzdWx0PjxSZXN1
  bHQ+PENsaWVudElkPjc3MzY0NTgyPC9DbGllbnRJZD48SW50ZXJuYWxfQ2xpZW50
  SWQ+MjY3PC9JbnRlcm5hbF9DbGllbnRJZD4KCQkJPC9SZXN1bHQ+CgkJPC9Nc2dD
  bGllbnRBZGRScz4=
  
  &lt;/PACKAGE_B64&gt;
      &lt;/DATA&gt;
  &lt;/CIT_REQUEST&gt;/
  </code></pre>
  
  <p>Please help with regexp or another way out.</p>