title: Regex to get the string between a character and a whitespace and excluding the first delimiter
body: <p>In the following text what Regex (Javascript) would match "user" (user is a random name), excluding the "@" character?</p>
  
  <pre><code>I want to tag this @user here
  and this @user
  @user
  </code></pre>
  
  <p><br></p>
  
  <p>I have looked at the following solutions and made the following regexes that did not work</p>
  
  <p><a href="https://stackoverflow.com/questions/5532675/regex-pattern-to-match-a-string-between-two-characters-but-exclude-the-characte">RegEx pattern to match a string between two characters, but exclude the characters</a></p>
  
  <pre><code>\@(.*)\s
  </code></pre>
  
  <p><a href="https://stackoverflow.com/questions/1454913/regular-expression-to-find-a-string-included-between-two-characters-while-exclu">Regular Expression to find a string included between two characters while EXCLUDING the delimiters</a> </p>
  
  <pre><code>(?!\@)(.*?)(?=\s)
  </code></pre>
  
  <p><a href="https://stackoverflow.com/questions/19338780/regex-matching-a-character-and-excluding-it-from-the-results">Regex: Matching a character and excluding it from the results?</a></p>
  
  <pre><code>^@[^\s]+
  </code></pre>
  
  <p>Finally I made this regex that works but returns "@user" instead of "user":</p>
  
  <pre><code>@[^\s\n]+
  </code></pre>
  
  <p>The Javascript used to execute the regex is:</p>
  
  <pre><code>string.match(/@[^\s\n]+/)
  </code></pre>