title: Perl - Returning Multiple "Same" Matches from one string
body: <p>I have string of the form: </p>
  
  <pre><code>column1\\\u0022\u003E\u003Ca href=\u0027\\\/stock\\\/QCOM\u0027\u003EQUALCOMM Incorporated\u003C\\\/a\u003E\u003C\\\/td\u003E\\n          \u003Ctd class=\\\u0022view_all_column2\\\u0022\u003E4.99%\u003C\\\/td\u003E\\n        \u003C\\\/tr\u003E\\n        \u003Ctr\u003E\\n          \u003Ctd class=\\\u0022view_all_column1\\\u0022\u003E\u003Ca href=\u0027\\\/stock\\\/ADI\u0027\u003EAnalog Devices, Inc.\u003C\\\/a\u003E\u003C\\\/td\u003E\\n          \u003Ctd class=\\\u0022view_all_column2\\\u0022\u003E4.88%\u003C\\\/td\u003E\\n        \u003C\\\/tr\u003E\\n        \u003Ctr\u003E\\n          \u003Ctd class=\\\u0022view_all_column1\\\u0022\u003E\u003Ca href=\u0027\\\/stock\\\/NXPI\u0027\u003ENXP Semiconductors NV\u003C\\\/a\u003E\u003C\\\/td\u003E\\n          \u003Ctd class=\\\u0022view_all_column2\\\u0022\u003E4.83%\u003C\\\/td\u003E\\n        \u003C\\\/tr\u003E\\n        \u003Ctr\u003E\\n          \u003Ctd class=\\\u0022view_all_column1\\\u0022\u003E\u003Ca href=\u0027\\\/stock\\\/NOK\u0027\u003ENokia Oyj Sponsored ADR\u003C\\\/a\u003E\u003C\\\/td\u003E\\n          \u003Ctd class=\\\u0022view_all_column2\\\u0022\u003E4.53%\u003C\\\/td\u003E\\n        \u003C\\\/tr\u003E\\n        \u003Ctr\u003E\\n          \u003Ctd class=\\\u0022view_all_column1\\\u0022\u003E\u003Ca href=\u0027\\\/stock\\\/ERIC\u0027\u003ETelefonaktiebolaget
  </code></pre>
  
  <p>that is - it has multiple instances of "<code>stock\\\/</code>" in that single line. For example, it has "<code>stock\\\/QCOM\u0027\</code>", then "<code>stock\\\/ADI\u0027\</code>", then "<code>stock\\\/NXPI\u0027\</code>" and so on</p>
  
  <p>What I need is to extract every single 3/4 letter code that follows the "<code>stock\\\/</code>" pattern. 
  In the above case, I need to extract the values of "<code>QCOM, ADI, NXPI,</code>" and so on as the output</p>
  
  <p>I consulted the thread <a href="https://stackoverflow.com/questions/39435914/capture-multiple-matches-from-the-same-perl-regex">Capture multiple matches from the same Perl regex?</a> and tried the following, but despite using "g" it is returning only the first match. I need the whole list.</p>
  
  <pre><code>    if ($_ =~ /stock\\\\\\\/(.*?)\\u0027/g)
      {
          print "-$1-";
      }
  </code></pre>
  
  <p>Any idea how to achieve that, please?
  Thanks</p>