title: How to remove all characters before specific character in array data
body: <p>I have a comma-separated string being pulled into my application from a web service, which lists a user's roles. What I need to do with this string is turn it into an array, so I can then process it for my end result. I've successfully converted the string to an array with jQuery, which is goal #1. Goal #2, which I don't know how to do, is take the newly created array, and remove all characters before any array item that contains '/', including '/'.</p>
  
  <p>I created a simple work-in-progress JSFiddle: <a href="https://jsfiddle.net/2Lfo4966/" rel="nofollow">https://jsfiddle.net/2Lfo4966/</a></p>
  
  <p>The string I receive is the following:
  <code>ABCD,ABCD/Admin,ABCD/DataManagement,ABCD/XYZTeam,ABCD/DriverUsers,ABCD/RISC</code></p>
  
  <p><code>ABCD/</code> in the string above can change, and may be <code>XYZ</code>, <code>MNO</code>, etc.</p>
  
  <p>To convert to an array, I've done the following:</p>
  
  <pre><code>var importUserRole = 'ABCD,ABCD/Admin,ABCD/DataManagement,ABCD/XYZTeam,ABCD/DriverUsers,ABCD/RISC';
  var currentUserRole = importUserRole.split(',');
  </code></pre>
  
  <p>Using <code>console.log</code>, I get the following result:</p>
  
  <pre><code>["ABCD", "ABCD/Admin", "ABCD/DataManagement", "ABCD/XYZTeam", "ABCD/DriverUsers", "ABCD/RISC"]
  </code></pre>
  
  <p>I'm now at the point where I need the code to look at each index of array, and if <code>/</code> exists, remove all characters before <code>/</code> including <code>/</code>.</p>
  
  <p>I've searched for a solution, but the JS solutions I've found are for removing characters after a particular character, and are not quite what I need to get this done.</p>