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

5
LINES

< > BotCompany Repo | #1016487 // regexpExtract - return whole first match

JavaX fragment (include)

static S regexpExtract(S pat, S s) {
  if (s == null) null;
  Matcher m = regexpMatcher(pat, s);
  ret m.find() ? m.group() : null;
}

Author comment

Began life as a copy of #1013199

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1016487
Snippet name: regexpExtract - return whole first match
Eternal ID of this version: #1016487/3
Text MD5: cd46c91ecf33ba6f2b49c4f5942047f0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-27 14:02:54
Source code size: 137 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 469 / 521
Version history: 2 change(s)
Referenced in: [show references]