title: Regex to match strings containing letters, numbers and @
body: <p>I need a regex to match letters, numbers and possibly @ and . (They are not email adresses)</p>
  
  <p><strong>Match:</strong><br></p>
  
  <p><em>mirs99milo</em> <br>
  <em>kiapp98@dot.com</em></p>
  
  <p><strong>Non match:</strong><br></p>
  
  <p><em>Device</em><br>
  <em>99987</em></p>
  
  <p>Sometimes, the string comes with a special character at the beggining, in this case the character should be skip and get the string, example:</p>
  
  <p><em>-mirs99milo</em>       -> Ignore the "-" and only match mirs99milo    <br>
  <em>-kiapp98@dot.com</em>  -> Ignore the "-" and only match kiapp98@dot.com</p>
  
  <p>I already have this:</p>
  
  <p><strong>(?=.<em>\w)(?=.</em>[A-Za-z])[\w]{1,10}</strong> </p>
  
  <p>which works perfectly fine, except for when the string has an "@"</p>
  
  <p><a href="https://regex101.com/r/bHUCaX/3" rel="nofollow noreferrer">https://regex101.com/r/bHUCaX/3</a></p>
  
  <p>Any help is pretty much appreciate. Thanks.</p>