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

11
LINES

< > BotCompany Repo | #1004307 // regexp - make Java regexp Matcher (expression is cached)

JavaX fragment (include)

static Matcher regexp(S pat, S s) {
  ret regexp(compileRegexp(pat), unnull(s));
}

static Matcher regexp(java.util.regex.Pattern pat, S s) {
  ret pat.matcher(unnull(s));
}

static java.util.regex.Pattern regexp(S pat) {
  ret compileRegexp(pat);
}

Author comment

Began life as a copy of #1004243

download  show line numbers  debug dex  old transpilations   

Travelled to 18 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, ekrmjmnbrukm, elmgxqgtpvxh, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv

No comments. add comment

Snippet ID: #1004307
Snippet name: regexp - make Java regexp Matcher (expression is cached)
Eternal ID of this version: #1004307/8
Text MD5: 9b22252fcd0ec42f4c22733af959708c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-06 22:25:29
Source code size: 259 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 529 / 589
Version history: 7 change(s)
Referenced in: [show references]