title: Extracting groups in a regex match
body: <p>I have a set of inputs.
  I am trying to write a regex to match the following pattern in the input:</p>
  
  <blockquote>
    <p><strong>Day</strong> at <strong>Time</strong> on <strong>location</strong></p>
  </blockquote>
  
  <p>Example input: </p>
  
  <blockquote>
    <p><strong>Today</strong> at <strong>12:30 PM</strong> on <strong>Sam's living room</strong></p>
  </blockquote>
  
  <p>The bolded part of the text varies in each input. </p>
  
  <p>I wrote the following regex:</p>
  
  <pre><code>import regex as re
  
  input_example = "Today at 12:30 PM on Rakesh's Echo"
  regexp_1 = re.compile(r'(\w+) at (\d+):(\d+) (\w+) on (\w+)')
  re_match = regexp_1.match(input_example)
  </code></pre>
  
  <p>Which works, I am matching the correct patterns. I am now trying to extract groups from within the pattern. </p>
  
  <p>My desired output is: </p>
  
  <pre><code>re_match.group(1)
  &gt;&gt; "Today"
  re_match.group(2)
  &gt;&gt; "12:30 PM"
  re_match.group(3)
  &gt;&gt; "Sam's living room"
  </code></pre>
  
  <p>However, my current regular expression match does not give me this output. What is the correct regex that will give me the above outputs? </p>