title: Combine multiple string.match functions into a single line
body: <p>I have a function where I need to check for special characters and break it if I find one.</p>
  
  <p>Here is what I have tried.</p>
  
  <pre><code>local text = "h!ello\"wor%ld_t@xt.p^*sp&amp;ki#$te"
  
  if (string.match(text, "&amp;") ~= nil) then
    print("Invalid Character \n")
  end 
  
  if (string.match(text, "\"") ~= nil) then
    print("Invalid Character \n")
  end 
  
  if (string.match(text, "#") ~= nil) then
    print("Invalid Character \n")
  end 
  
  if (string.match(text, "$") ~= nil) then
    print("Invalid Character \n")
  end 
  
  if (string.match(text, "@") ~= nil) then
    print("Invalid Character \n")
  end
  
  if (string.match(text, "%%") ~= nil) then
    print("Invalid Character \n")
  end
  
  if (string.match(text, "!") ~= nil) then
    print("Invalid Character \n")
  end
  
  if (string.match(text, "^") ~= nil) then
    print("Invalid Character \n")
  end
  
  if (string.match(text, "*") ~= nil) then
    print("Invalid Character \n")
  end
  </code></pre>
  
  <p>I'm able to successfully do this, but I want everything in single line. Went through Lua Programming book but couldn't get.</p>