title: Regex for checking names with _0, _1 at the end?
body: <p>I want to write a regex that captures all names that end with <code>_0, _1,</code> like :</p>
  
  <pre><code>dog, cart_5, rat_0
  </code></pre>
  
  <p>I tried <code>/_\d$/.test('abc_0')</code> but it returns false for 'dog'. I want to find out how to ensure that the  group <code>(_digit)</code> <strong>as a whole</strong> is repeated 0 or more times ?</p>
  
  <p>Also, is it possible for me to get the digits after the underscore ? I want to do the last thing via java</p>