fork(2) download
  1. local s = "TEST2XX_R_00.01.211_TEST" -- 00, 01, 211, "TEST850_F_11.22.333_TEST", -- 11, 22, 333; "TESTXXX_X_12.34.456" } -- 12, 34, 456
  2. for x in string.gmatch(s:gsub("TEST%d+",""), "%d+") do
  3. print(x)
  4. end
  5.  
Success #stdin #stdout 0s 15008KB
stdin
Standard input is empty
stdout
00
01
211