title: How to capture string before the symbol
body: <p>Morning all,
  I want to capture the string before the colon:
  and then compare the string after the colon
  and remove the values which are equal to the values before the colon.</p>
  
  <p>For example:</p>
  
  <pre><code>aaa:aaa-bbb-ccc
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>aaa others:bbb,ccc
  </code></pre>
  
  <p>my code below</p>
  
  <pre><code>$string = "aaa:aaa-bbb-ccc";
  $first =~ /(:.*\)/; //get aaa before the colon
  $others =$string=~ s/$first//; remove the same values after colon
  </code></pre>
  
  <p>Can you please help me ?? Thank you..</p>