title: JS how do I select a string from between two special characters?
body: <p>I have a string that will be formatted something like <code>___&lt;test@email.com&gt;____</code> where the underscores is irrelevant stuff I don't need but varys in length. I need to select and store what is between the brackets. </p>
  
  <p>My problem is that all of the sub string solutions I have seen operate off of a hard integer location in the string. But the start and end of the substring I want to select (the brackets) will never be the same.</p>
  
  <p>So I thought if I could use something to find the location of the brackets then feed that to a substring solution that would work. But all of the ways I have found of identifying special characters only reports if there are special characters, not where they are.</p>
  
  <p>Thanks in advance!</p>