1 | static int indexOf_regexp(S s, S pat) { |
2 | Matcher m = compileRegexp(pat).matcher(s); |
3 | ret m.find() ? m.start() : -1; |
4 | } |
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: | 258 / 270 |
Referenced in: | [show references] |