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)

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

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: 552 / 578
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1013255 - regexpMatchGroups - make Java regexp Matcher, match full string and get all groups
#1013939 - regexpLastGroup - make Java regexp Matcher and return last group of first match
#1013941 - regexpICFirstGroups - make Java regexp Matcher and return all groups of first match
#1014298 - regexpGroups - synonym of regexpFirstGroups - make Java regexp Matcher and return all groups of first match
#1016487 - regexpExtract - return whole first match
#1022664 - regexpFirstGroupsIC - make case-insensitive Java regexp Matcher and return all groups of first match