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

4
LINES

< > BotCompany Repo | #1025617 - indexOf_regexp

JavaX fragment (include)

static int indexOf_regexp(S s, S pat) {
  Matcher m = compileRegexp(pat).matcher(s);
  ret m.find() ? m.start() : -1;
}

Author comment

Began life as a copy of #1012557

download  show line numbers  debug dex   

Travelled to 2 computer(s): mqqgnosmbjvj, tvejysmllsmz

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: 2 / 9
Referenced in: [show references]