title: Dealing with speech marks with string.match
body: <p>I have an xml page that I have a monitoring system scanning, here is the source data:</p>
  
  <pre><code>`&lt;queues&gt;
  &lt;queue name="workQueue"&gt;
  &lt;stats size="0" consumerCount="28" enqueueCount="29320" dequeueCount="37000"/&gt;
  </code></pre>
  
  <p>And here is the code I have so far:</p>
  
  <pre><code>local pattern = " size=(%d+) "
  
  local a = alarm.get("CO13974960-19518")
  
  local vsize = string.match(a.message, pattern)
  
  local sum = vsize
  </code></pre>
  
  <p>I'm trying to target this bit of data from the XML page:</p>
  
  <pre><code>stats size="0"
  </code></pre>
  
  <p>The value "0" is the number I am interested in, and I'm looking for a way to capture that figure (no matter what it reaches) via the script.</p>
  
  <p>I think my script is looking for:</p>
  
  <p><code>size=0</code> rather than <code>size="0"</code></p>
  
  <p>But I'm unsure on the correct syntax on how to do this.</p>