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

7
LINES

< > BotCompany Repo | #1013920 // safeRegexpFind

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

Libraryless. Click here for Pure Java version (10781L/59K).

sbool safeRegexpFind(S pat, S s) {
  ret safeRegexpFind(compileRegexp(pat), s);
}

sbool safeRegexpFind(Pattern pat, S s) {
  ret pat.matcher(InterruptibleString(s)).find();
}

Author comment

Began life as a copy of #1013918

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1013920
Snippet name: safeRegexpFind
Eternal ID of this version: #1013920/3
Text MD5: 3d2a41654c8ad9beb588a58016fd34a7
Transpilation MD5: 1cea651759d5ba8a02ff835be88c2e61
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-04-25 19:38:46
Source code size: 181 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 461 / 488
Version history: 2 change(s)
Referenced in: [show references]