fork download
  1. local number_cut = 12
  2. local second_one = [[
  3. 1283813122344
  4. 12
  5. 12838138931316
  6. 128381383131
  7. ]]
  8.  
  9. local match0 = string.match(second_one, "%f[%w_]" .. number_cut .. "%f[^%w_]")
  10.  
  11. if (match0) then
  12. print "this is exactly matched 12"
  13. else
  14. print "not matching"
  15. end
Success #stdin #stdout 0.01s 5396KB
stdin
Standard input is empty
stdout
this is exactly matched 12