Libraryless. Click here for Pure Java version (2700L/17K).
1 | static L<IntRange> regexpFindRanges(S pat, S s) { |
2 | Matcher m = regexpMatcher(pat, s); |
3 | new L<IntRange> l; |
4 | while (m.find()) |
5 | l.add(IntRange(m.start(), m.end()); |
6 | ret l; |
7 | } |
Began life as a copy of #1028325
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028529 |
Snippet name: | regexpFindRanges |
Eternal ID of this version: | #1028529/1 |
Text MD5: | 7d79e9bf0b5cbb8bc8f2c71e8a84ad59 |
Transpilation MD5: | 82478edaf11446e79e5587a558935ebe |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-06-24 18:46:38 |
Source code size: | 183 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 279 / 383 |
Referenced in: | [show references] |