1 | static S regexpExtract(S pat, S s) { |
2 | if (s == null) null; |
3 | Matcher m = regexpMatcher(pat, s); |
4 | ret m.find() ? m.group() : null; |
5 | } |
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: | 470 / 523 |
Version history: | 2 change(s) |
Referenced in: | [show references] |