fork download
  1. a = " (55)"
  2. for word in string.gmatch(a, "%f[%w_]%d+") do print(word) end
  3. -- 55
  4. for word in string.gmatch(a, "[()%%+={},:*^-]+") do print(word) end
  5. -- (, )
  6.  
Success #stdin #stdout 0s 2844KB
stdin
Standard input is empty
stdout
55
(
)