Regex to match the number zero
<p>I need a regex which will match decimal forms of the number zero such as 0 or 0.0 or 0.00000 but not multiples of 10 such as 110.0000</p>

<p>I've seen <a href="https://stackoverflow.com/questions/324961/regex-to-match-for-zeros">this</a> SO question and it doesn't really match.</p>

<p>I've been using the great online regex tool <a href="http://regexr.com/" rel="nofollow noreferrer">here</a> to test patterns but I've had limited success.</p>

<p>The best I could think of was <code>(\b0+(\.)?0+\b)</code> Unfortunately regex sees <code>.</code> as a word boundary so it ends up capturing the <code>.000</code> in <code>25.000</code> for example. Dropping my <code>?</code> fixes that problem but then misses any isolated single <code>0</code> characters</p>