1 | static bool regexpMatchGroups(S pat, S s, Matches m) {
|
2 | Matcher matcher = Pattern.compile(pat).matcher(s); |
3 | if (!matcher.matches()) false; |
4 | if (m != null) |
5 | m.m = toStringArray(regexpGetGroups(matcher)); |
6 | true; |
7 | } |
Began life as a copy of #1013199
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1013255 |
| Snippet name: | regexpMatchGroups - make Java regexp Matcher, match full string and get all groups |
| Eternal ID of this version: | #1013255/3 |
| Text MD5: | c9a30d407bf7be716f62fda1def0bb59 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-12-30 04:09:15 |
| Source code size: | 224 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 606 / 658 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |