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

7
LINES

< > BotCompany Repo | #1029077 // indicesOfRegexp

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2557L/16K).

static L<Int> indicesOfRegexp(S pat, S s) {
  Matcher m = regexpMatcher(pat, s);
  new L<Int> l;
  while (m.find())
    l.add(m.start();
  ret l;
}

Author comment

Began life as a copy of #1028529

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: #1029077
Snippet name: indicesOfRegexp
Eternal ID of this version: #1029077/1
Text MD5: 99215e4902c22078df10579deaaeaa83
Transpilation MD5: e6b3c47f19111c92518831f391606c99
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-19 01:30:52
Source code size: 153 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 119 / 195
Referenced in: [show references]