title: Regular expression for a non-zero hex value
body: <p>I am looking for a regular expression to determine when any of the values in a 32-bit hex value is non-zero. </p>
  
  <p>The data patterns look like <code>0x00000000</code> and I want to know when any of the digits is non-zero.  For example, if <code>0x00001000</code> or <code>0x10000000</code> or <code>0xB000000</code> would be capture by the regular expression, but not a <code>0x00000000</code> pattern.  Right now I perform a walking pattern match of</p>
  
  <pre><code>0x[^0]
  0x0[^0]
  0x00[^0]
  ...
  0x0000000[^0]
  </code></pre>
  
  <p>This will work, but I much rather have one pattern if possible. Thanks.</p>
  
  <p>Mark</p>
  
  <p>Edit:  I didn't mention as the RegEx was not needed in a program, otherwise I would have used a different approach, but I was using the RegEx to search for values in a log file using UltraEdit.  I could have developed a program or some other means to search, but I was just being lazy, just being honest.  Ben S solution worked both in UltraEdit and Rad Software Regular Expression Designer.  rampion solution didn't work in either tool, not sure why.  </p>