title: Autohotkey - Replace different words or sentences
body: <p>in this script that I use i can replace only one word <em>teams</em>--> <em>milan, juventus, inter..</em>
  But i want replace many words (not only one word) for example:</p>
  
  <p>[simply word replacement jack-->beta]<br></p>
  
  <pre><code>alfa--&gt;beta
  </code></pre>
  
  <p>[sentence replacement jack--><em>jack,john,alfa</em>]<br></p>
  
  <pre><code>jack
  
  jack
  john
  alfa
  </code></pre>
  
  <p>This is actually code that i use</p>
  
  <pre><code>loop {
      While !RegexMatch(strCapture, "teams$") {
          Input, strUserInput, V L1, {BackSpace}  ; V: visible, L1: Character length 1
          If ErrorLevel = Endkey:BackSpace
              strCapture := SubStr(strCapture, 1, StrLen(strUserInput) - 1) 
          else
              strCapture .= strUserInput
          ; tooltip % ErrorLevel "`n" strUserInput "`n" strCapture "`n" ; enable this to see what actually happens
      }
      SendInput,
      (Ltrim
          {Backspace 5}
          milan
          juventus
          inter
          roma
          lazio
          napoli
          mantova
      )
      strCapture := ""
  }
  </code></pre>
  
  <p>How can I modify the code?<br>
  It is also possible to run the script integrating copy-paste?</p>