title: AutoHotkey | RegExMatch
body: <p>I need help to figure out what kind of characters I have to put to save the right var with RegExMatch.</p>
  
  <pre><code>RegExMatch(LLine, "(.*) :  !hello", Name)
      SendInput, y
      sleep, 1000
      SendInput, Hello %Name1%, how are you?{enter}
  </code></pre>
  
  <p>So the chat output is like this for example: <code>*SPEC* TEST TEST :  !hello</code></p>
  
  <p>I want the var to be: <code>TEST TEST</code></p>
  
  <p><code>(.*)</code> saves everything in front of  <code>:  !hello</code></p>
  
  <p>How can I make him to not save the <code>*SPEC*</code> part?</p>
  
  <p>Also, not everyone has that <code>*SPEC*</code> inside their name. When I'm not in Spec of course, he wont show it in the chat.</p>
  
  <p>As well if someones name is just 1 word like "TEST", I want him to save the single word as the var.</p>
  
  <hr>
  
  <p>I hope you guys understand what I mean and can help me, I would be really thankful!</p>