title: Finding the desired links via Regex
body: <p>I am a beginner in Regex but I am trying to implement it.
  What I am trying to do is I want to extract the links that are present in specific files via regex and print them out.
  Below are the links all in one place that I want to extarct:</p>
  <pre><code>https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_hs_openjdktest_s390x_linux/18/consoleFull
  
  https://ci.adoptopenjdk.net/view/Test_openjdk/job/Test_openjdk11_hs_sanity.openjdk_x86-64_mac/26/consoleFull
  
  To reproduce: https://ci.adoptopenjdk.net/job/Test_openjdk14_hs_sanity.openjdk_ppc64_aix/111/console
  
  Jenkins Build URL: https://ci.adoptopenjdk.net/job/Test_openjdk8_hs_extended.system_ppc64le_linux/259/
  
  internal build `Test_openjdk8_j9_sanity.openjdk_aarch64_linux/43/`
  
  internal build `Test_openjdk11_j9_sanity.functional_aarch64_linux/46` 
  </code></pre>
  <p>I want the links in the form of (Expected):</p>
  <pre><code>https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_hs_openjdktest_s390x_linux/18/
  https://ci.adoptopenjdk.net/view/Test_openjdk/job/Test_openjdk11_hs_sanity.openjdk_x86-64_mac/26/
  https://ci.adoptopenjdk.net/job/Test_openjdk14_hs_sanity.openjdk_ppc64_aix/111/
  Test_openjdk8_j9_sanity.openjdk_aarch64_linux/43/
  </code></pre>
  <p>To solve it I tried to apply regex concept and came up with this pattern:
  <code>(?:(?:http|ftp|https):\/\/ci.adoptopenjdk.net.+(?:consoleFull|console|\d?))|(?:\`.+?\`)</code></p>
  <p>But the output comes like this (Actual):</p>
  <pre><code>https://ci.adoptopenjdk.net/job/Test_openjdk17_j9_sanity.openjdk_x86-64_linux/33/consoleFull
  
  https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_hs_openjdktest_s390x_linux/18/consoleFullhttps://ci.adoptopenjdk.net/job/Test_openjdk11_hs_sanity.openjdk_ppc64_aix/145/`Test_openjdk8_j9_sanity.openjdk_aarch64_linux/43/`
  `cent7-aarch64-3``Test_openjdk8_j9_sanity.openjdk_aarch64_linux/43/`
  `cent7-aarch64-3`
  </code></pre>
  <p>Now I wanted to check on the basis of https://....Test_openjdk{num} as <code>ci.adoptopenjdk.net</code> is outdated
  To encounter this situation I made a regex pattern to check all the links as mentioned above as inputs on the basis of Test_openjdk{num} to get the desired output.
  I used</p>
  <pre><code>(?:http|ftp|https):\/\/Test_openjdk/\d.+\/(?=console)|(?&lt;=\`).+?\/(?=\`)
  </code></pre>
  <p>but only got the following output:</p>
  <pre><code>Test_openjdk8_j9_sanity.openjdk_aarch64_linux/43/
  Test_openjdk8_j9_sanity.openjdk_aarch64_linux/43/
  </code></pre>
  <p>I have been trying various ways but they all are failing.
  Can anyone explain me where and why am I going wrong it would really be great.
  Thank You</p>