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

7
LINES

< > BotCompany Repo | #1012706 // regexpMatches - full match only!

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

Libraryless. Click here for Pure Java version (3900L/22K).

1  
sbool regexpMatches(S pat, S s) {
2  
  ret pat != null && s != null && regexp(pat, s).matches();
3  
}
4  
5  
sbool regexpMatches(java.util.regex.Pattern pat, S s) {
6  
  ret pat != null && s != null && regexp(pat, s).matches();
7  
}

Author comment

Began life as a copy of #1004307

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1012706
Snippet name: regexpMatches - full match only!
Eternal ID of this version: #1012706/7
Text MD5: a6ae3edafe6aace89ffab950cf9a1bbf
Transpilation MD5: 4b44fbb92fd96fbbe183f2995e29f268
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-06 16:39:04
Source code size: 220 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 567 / 667
Version history: 6 change(s)
Referenced in: [show references]