Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #314 // bug test

Lua code

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

Comments [hide]

ID Author/Program Comment Date
716 #1000610 Edit suggestion:
!636
!629

main {
static Object androidContext;
static String programID;

public static void main(String[] args) throws Exception {
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)
}}
2015-08-19 11:13:41  delete 
714 #1000604 (pitcher) 2015-08-18 00:07:22

add comment

Image recognition results

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: 1152 / 201
Referenced in: [show references]