title: Regex matching only second group
body: <p>Is there any way that just match the string of second group by just using regex?</p>
  
  <p>The tool I'm using is <a href="https://www.rundeck.com/blog/output-processing-data-passing-preview" rel="nofollow noreferrer">Rundeck's Global Log Filters (Hightlight Output)</a></p>
  
  <p>Tool description:</p>
  
  <blockquote>
    <p>Regular Expression to test. Use groups to selectively highlight. More
    Use a non-grouped pattern to highlight entire match:</p>
    
    <p>regex: test message: this is a test result: this is a test Use regex
    groups to only highlight grouped sections:</p>
    
    <p>regex: this (is) a (test) 
    result: this <em>is</em> a <em>test</em> See the <a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html" rel="nofollow noreferrer">Java Pattern</a>
    documentation.</p>
  </blockquote>
  
  <p>Example:</p>
  
  <pre><code>3)  Manager port: 2614
  4)  Tcp Port: 2615
  3)  Manager port: 2714
  4)  Tcp Port: 2715
  </code></pre>
  
  <p>Above is the strings, I want to get the match of <code>"3)  Manager port: 2714"</code> only. Here is what I come up <code>(?:Manager port:.*){1}</code></p>
  
  <p>But it still matching both <code>3)  Manager port: 2614</code> and <code>3)  Manager port: 2714</code></p>
  
  <p>Thanks</p>