title: Match multiple instances using RegExp and store values (JavaScript)
body: <p>I would like to match all values with this pattern: <code>@[\S]+</code>. This will be used to get all names after an <code>@</code> in a comment. Example:</p>
  
  <p><code>Here are some people: @Name1, @Name2, @Name3, @Name4</code></p>
  
  <p>should return: <code>["Name1", "Name2", "Name3", "Name4"]</code></p>
  
  <p>I have tried to use <code>comment.match(/@[\S]+/ig)</code> but this returns an array with the <code>@</code> symbol. I have tried to encapsulate the pattern with brackets: <code>comment.match(/@([\S]+)/ig)</code> but this doesn't help either. There may be more than 10 names that are matched so RegExp can't be used, and I'd rather not have to iterate through the array and strip it out. </p>
  
  <p>Help appreciated :) .</p>