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

5
LINES

< > BotCompany Repo | #1013199 // regexpFirstGroups - make Java regexp Matcher and return all groups of first match

JavaX fragment (include)

1  
static L<S> regexpFirstGroups(S pat, S s) {
2  
  if (s == null) null;
3  
  Matcher m = regexp(pat, s);
4  
  ret m.find() ? regexpGetGroups(m) : null;
5  
}

Author comment

Began life as a copy of #1007002

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1013199
Snippet name: regexpFirstGroups - make Java regexp Matcher and return all groups of first match
Eternal ID of this version: #1013199/5
Text MD5: 524675023f510f86bfb43c8735c5ca9c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-29 18:39:18
Source code size: 146 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 553 / 579
Version history: 4 change(s)
Referenced in: [show references]