static S regexpExtract(S pat, S s) { if (s == null) null; Matcher m = regexpMatcher(pat, s); ret m.find() ? m.group() : null; }
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: | 466 / 519 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1019758 - regexpExtractAll - return all whole matches #1019825 - regexpExtractIC - return whole first match (ignoring case) #1030949 - Transpiler output of #1031393 #1031301 - regexpExtractGroup - return first group of first match |