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

6
LINES

< > BotCompany Repo | #1003754 // matchOK - match "ok bla" and return "bla" (unquoted) or null

JavaX fragment (include)

1  
static S matchOK(S s) {
2  
  new Matches m;
3  
  if "ok *"
4  
    ret m.unq(0);
5  
  null;
6  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003754
Snippet name: matchOK - match "ok bla" and return "bla" (unquoted) or null
Eternal ID of this version: #1003754/1
Text MD5: b16374796efad87d19259a7c047af853
Author: stefan
Category: javax / talking robots
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-26 19:35:20
Source code size: 85 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 629 / 575
Referenced in: [show references]