How do I remove all special characters, punctuation and whitespaces from a string in Lua?

Viewed 8890

In Lua (I can only find examples in other languages), how do I remove all punctuation, special characters and whitespace from a string? So, for example, s t!r@i%p^(p,e"d would become stripped?

3 Answers
Related