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

4
LINES

< > BotCompany Repo | #1028325 // regexpFindRange

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

Libraryless. Click here for Pure Java version (2686L/17K).

1  
static IntRange regexpFindRange(S pat, S s) {
2  
  Matcher m = regexpMatcher(pat, s);
3  
  ret m.find() ? IntRange(m.start(), m.end()) : null;
4  
}

Author comment

Began life as a copy of #1025617

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: #1028325
Snippet name: regexpFindRange
Eternal ID of this version: #1028325/3
Text MD5: 5aa8f1813f7a69d39a1b7055cece20d3
Transpilation MD5: 55ce60e0ce833640981d9ead57ac8b62
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-11 20:21:05
Source code size: 141 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 206 / 325
Version history: 2 change(s)
Referenced in: [show references]