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

7
LINES

< > BotCompany Repo | #1021196 // regexpAllFirstGroups - first group of all matches

JavaX fragment (include)

static LS regexpAllFirstGroups(S pattern, S text) {
  new LS l;
  Matcher matcher = regexp(pattern, text);
  while (matcher.find())
    l.add(matcher.group(1));
  ret l;
}

Author comment

Began life as a copy of #1016200

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021196
Snippet name: regexpAllFirstGroups - first group of all matches
Eternal ID of this version: #1021196/3
Text MD5: 6254059342823395fb52186940601a90
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-25 12:33:47
Source code size: 177 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 296 / 368
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)