static int indexOf_regexp(S s, S pat) { Matcher m = compileRegexp(pat).matcher(s); ret m.find() ? m.start() : -1; }
Began life as a copy of #1012557
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025617 |
Snippet name: | indexOf_regexp |
Eternal ID of this version: | #1025617/1 |
Text MD5: | df2b38f0c0306c9bd1cfc5a6ed01f07f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-09 12:37:49 |
Source code size: | 122 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 259 / 271 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1028325 - regexpFindRange |