How to get string (multi word) between characters
snippet in lua

How to get string (multi word) between characters

user7293

str = "Reason = Failed to connect ( Nickname: Mc Gee ), Banned by: Andrew"
print(str:match("%b()"):gsub("[()]","")) -- prints ` Nickname: Mc Gee `