a = " (55)"for word in string.gmatch(a, "%f[%w_]%d+") do print(word) end-- 55for word in string.gmatch(a, "[()%%+={},:*^-]+") do print(word) end-- (, )
Standard input is empty
55 ( )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!