title: Do I have to use the /g flag in these subroutine calls?
body: <pre><code>^Name:\ (.*)\r?\n
  Born:\ (?'date'(?:3[01]|[12][0-9]|[1-9])
              -(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)
              -(?:19|20)[0-9][0-9])\r?\n
  Admitted:\ \g'date'\r?\n
  Released:\ \g'date'$
  </code></pre>
  
  <p>The example is from here: <a href="https://www.regular-expressions.info/subroutine.html" rel="nofollow noreferrer">https://www.regular-expressions.info/subroutine.html</a> (bottom of the third section there)</p>
  
  <p>I know that <code>/g</code> is a flag for "global" but there is no good info about it on the Net. Is this something necessary in this example, or do I always have to use it when referring to named capturing groups? Can I omit it here and it will work the same way? I just don't understand how it works. </p>