result = "1, 2, 3, 4" --i, j, x1, y1, x2, y2 = string.find("(%d),%s*(%d),%s*(%d),%s*(%d)", result) --i, j = string.find("(%d+)", result) i, j = string.find("1", result) print("i=", i)
test run test run with input download show line numbers
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
2 comment(s) hidden. show
Recognizer | Recognition Result | Visualize | Recalc |
---|---|---|---|
#308 | 191 | [visualize] |
Snippet ID: | #314 |
Snippet name: | bug test |
Eternal ID of this version: | #314/1 |
Text MD5: | 9fb323b8559f13f6b6cd1cf9c8f226d1 |
Author: | meetup1 |
Category: | |
Type: | Lua code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-01-16 20:22:33 |
Source code size: | 191 bytes / 7 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 1133 / 197 |
Referenced in: | [show references] |