Lua string space, letters and digits
snippet in lua

Lua string space, letters and digits

user248

str:match("[^%w%s]")